~ubuntu-branches/ubuntu/maverick/wxwidgets2.8/maverick-proposed

« back to all changes in this revision

Viewing changes to wxPython/src/mac/_core.py

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2007-11-06 18:25:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071106182513-809agqds6igh7mqo
Tags: 2.8.6.1-0ubuntu1
* New upstream version, based on the upstream tarball
  wxPython-src-2.8.6.1.tar.bz2, renamed debian to debian-upstream.
* Provide a get-orig-source target to do the repackaging.
* Fix "substvar-source-version-is-deprecated" lintian warnings.
* Remove duplicate Description field in debian/control.
* Add "\" at the end of line 8 in debian/python-wxtools.menu to fix
  "bad-test-in-menu-item" lintian error.
* Provide .xpm icons to fix "menu-icon-not-in-xpm-format" lintian errors,
  changed Icon field in debian/python-wxtools.menu.
* Fix "wrong-name-for-upstream-changelog" lintian warnings.
* Remove "Application;" from Categories field in debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Switch "Apps" to "Applications" in debian/python-wxtools.menu to fix
  "menu-item-uses-apps-section" lintian warnings.
* Drop the icon extension from debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Add dpatch support.
* Add "WX_CONFIG" patch.
* debian/rules:
  - added .xpm icons to install-gtk-py-tools target
  - added "docs/changes.txt" to dh_installchangelogs in binary-common target
  - added "\" at the end of "install-examples install-msw-dev
    install-msw-dbg install-headers-msw" line in .PHONY

Show diffs side-by-side

added added

removed removed

Lines of Context:
342
342
BORDER_RAISED = _core_.BORDER_RAISED
343
343
BORDER_SUNKEN = _core_.BORDER_SUNKEN
344
344
BORDER_DOUBLE = _core_.BORDER_DOUBLE
 
345
BORDER_THEME = _core_.BORDER_THEME
345
346
BORDER_MASK = _core_.BORDER_MASK
346
347
BG_STYLE_SYSTEM = _core_.BG_STYLE_SYSTEM
347
348
BG_STYLE_COLOUR = _core_.BG_STYLE_COLOUR
1674
1675
    __repr__ = _swig_repr
1675
1676
    def __init__(self, *args, **kwargs): 
1676
1677
        """
1677
 
        __init__(self, wxDouble x=0.0, wxDouble y=0.0, wxDouble w=0.0, wxDouble h=0.0) -> Rect2D
 
1678
        __init__(self, Double x=0.0, Double y=0.0, Double w=0.0, Double h=0.0) -> Rect2D
1678
1679
 
1679
1680
        wx.Rect2D is a rectangle, with position and size, in a 2D coordinate system
1680
1681
        with floating point component values.
1691
1692
        return _core_.Rect2D_GetSize(*args, **kwargs)
1692
1693
 
1693
1694
    def GetLeft(*args, **kwargs):
1694
 
        """GetLeft(self) -> wxDouble"""
 
1695
        """GetLeft(self) -> Double"""
1695
1696
        return _core_.Rect2D_GetLeft(*args, **kwargs)
1696
1697
 
1697
1698
    def SetLeft(*args, **kwargs):
1698
 
        """SetLeft(self, wxDouble n)"""
 
1699
        """SetLeft(self, Double n)"""
1699
1700
        return _core_.Rect2D_SetLeft(*args, **kwargs)
1700
1701
 
1701
1702
    def MoveLeftTo(*args, **kwargs):
1702
 
        """MoveLeftTo(self, wxDouble n)"""
 
1703
        """MoveLeftTo(self, Double n)"""
1703
1704
        return _core_.Rect2D_MoveLeftTo(*args, **kwargs)
1704
1705
 
1705
1706
    def GetTop(*args, **kwargs):
1706
 
        """GetTop(self) -> wxDouble"""
 
1707
        """GetTop(self) -> Double"""
1707
1708
        return _core_.Rect2D_GetTop(*args, **kwargs)
1708
1709
 
1709
1710
    def SetTop(*args, **kwargs):
1710
 
        """SetTop(self, wxDouble n)"""
 
1711
        """SetTop(self, Double n)"""
1711
1712
        return _core_.Rect2D_SetTop(*args, **kwargs)
1712
1713
 
1713
1714
    def MoveTopTo(*args, **kwargs):
1714
 
        """MoveTopTo(self, wxDouble n)"""
 
1715
        """MoveTopTo(self, Double n)"""
1715
1716
        return _core_.Rect2D_MoveTopTo(*args, **kwargs)
1716
1717
 
1717
1718
    def GetBottom(*args, **kwargs):
1718
 
        """GetBottom(self) -> wxDouble"""
 
1719
        """GetBottom(self) -> Double"""
1719
1720
        return _core_.Rect2D_GetBottom(*args, **kwargs)
1720
1721
 
1721
1722
    def SetBottom(*args, **kwargs):
1722
 
        """SetBottom(self, wxDouble n)"""
 
1723
        """SetBottom(self, Double n)"""
1723
1724
        return _core_.Rect2D_SetBottom(*args, **kwargs)
1724
1725
 
1725
1726
    def MoveBottomTo(*args, **kwargs):
1726
 
        """MoveBottomTo(self, wxDouble n)"""
 
1727
        """MoveBottomTo(self, Double n)"""
1727
1728
        return _core_.Rect2D_MoveBottomTo(*args, **kwargs)
1728
1729
 
1729
1730
    def GetRight(*args, **kwargs):
1730
 
        """GetRight(self) -> wxDouble"""
 
1731
        """GetRight(self) -> Double"""
1731
1732
        return _core_.Rect2D_GetRight(*args, **kwargs)
1732
1733
 
1733
1734
    def SetRight(*args, **kwargs):
1734
 
        """SetRight(self, wxDouble n)"""
 
1735
        """SetRight(self, Double n)"""
1735
1736
        return _core_.Rect2D_SetRight(*args, **kwargs)
1736
1737
 
1737
1738
    def MoveRightTo(*args, **kwargs):
1738
 
        """MoveRightTo(self, wxDouble n)"""
 
1739
        """MoveRightTo(self, Double n)"""
1739
1740
        return _core_.Rect2D_MoveRightTo(*args, **kwargs)
1740
1741
 
1741
1742
    def GetLeftTop(*args, **kwargs):
1820
1821
 
1821
1822
    def Inset(*args):
1822
1823
        """
1823
 
        Inset(self, wxDouble x, wxDouble y)
1824
 
        Inset(self, wxDouble left, wxDouble top, wxDouble right, wxDouble bottom)
 
1824
        Inset(self, Double x, Double y)
 
1825
        Inset(self, Double left, Double top, Double right, Double bottom)
1825
1826
        """
1826
1827
        return _core_.Rect2D_Inset(*args)
1827
1828
 
1859
1860
 
1860
1861
    def Scale(*args):
1861
1862
        """
1862
 
        Scale(self, wxDouble f)
 
1863
        Scale(self, Double f)
1863
1864
        Scale(self, int num, int denum)
1864
1865
        """
1865
1866
        return _core_.Rect2D_Scale(*args)
1885
1886
    width = property(_core_.Rect2D_width_get, _core_.Rect2D_width_set)
1886
1887
    height = property(_core_.Rect2D_height_get, _core_.Rect2D_height_set)
1887
1888
    def Set(*args, **kwargs):
1888
 
        """Set(self, wxDouble x=0, wxDouble y=0, wxDouble width=0, wxDouble height=0)"""
 
1889
        """Set(self, Double x=0, Double y=0, Double width=0, Double height=0)"""
1889
1890
        return _core_.Rect2D_Set(*args, **kwargs)
1890
1891
 
1891
1892
    def Get(*args, **kwargs):
1997
1998
class OutputStream(object):
1998
1999
    """Proxy of C++ OutputStream class"""
1999
2000
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2000
 
    def __init__(self): raise AttributeError, "No constructor defined"
2001
2001
    __repr__ = _swig_repr
 
2002
    def __init__(self, *args, **kwargs): 
 
2003
        """__init__(self, PyObject p) -> OutputStream"""
 
2004
        _core_.OutputStream_swiginit(self,_core_.new_OutputStream(*args, **kwargs))
 
2005
    __swig_destroy__ = _core_.delete_OutputStream
 
2006
    __del__ = lambda self : None;
 
2007
    def close(*args, **kwargs):
 
2008
        """close(self)"""
 
2009
        return _core_.OutputStream_close(*args, **kwargs)
 
2010
 
 
2011
    def flush(*args, **kwargs):
 
2012
        """flush(self)"""
 
2013
        return _core_.OutputStream_flush(*args, **kwargs)
 
2014
 
 
2015
    def eof(*args, **kwargs):
 
2016
        """eof(self) -> bool"""
 
2017
        return _core_.OutputStream_eof(*args, **kwargs)
 
2018
 
 
2019
    def seek(*args, **kwargs):
 
2020
        """seek(self, int offset, int whence=0)"""
 
2021
        return _core_.OutputStream_seek(*args, **kwargs)
 
2022
 
 
2023
    def tell(*args, **kwargs):
 
2024
        """tell(self) -> int"""
 
2025
        return _core_.OutputStream_tell(*args, **kwargs)
 
2026
 
2002
2027
    def write(*args, **kwargs):
2003
 
        """write(self, PyObject obj)"""
 
2028
        """write(self, PyObject data)"""
2004
2029
        return _core_.OutputStream_write(*args, **kwargs)
2005
2030
 
 
2031
    def PutC(*args, **kwargs):
 
2032
        """PutC(self, char c)"""
 
2033
        return _core_.OutputStream_PutC(*args, **kwargs)
 
2034
 
2006
2035
    def LastWrite(*args, **kwargs):
2007
2036
        """LastWrite(self) -> size_t"""
2008
2037
        return _core_.OutputStream_LastWrite(*args, **kwargs)
2009
2038
 
 
2039
    def SeekO(*args, **kwargs):
 
2040
        """SeekO(self, unsigned long pos, int mode=FromStart) -> unsigned long"""
 
2041
        return _core_.OutputStream_SeekO(*args, **kwargs)
 
2042
 
 
2043
    def TellO(*args, **kwargs):
 
2044
        """TellO(self) -> unsigned long"""
 
2045
        return _core_.OutputStream_TellO(*args, **kwargs)
 
2046
 
2010
2047
_core_.OutputStream_swigregister(OutputStream)
2011
2048
 
2012
2049
#---------------------------------------------------------------------------
2280
2317
 
2281
2318
    RemoveFile = staticmethod(RemoveFile)
2282
2319
    AddFile = staticmethod(MemoryFSHandler_AddFile) 
 
2320
    def AddFileWithMimeType(*args, **kwargs):
 
2321
        """AddFileWithMimeType(String filename, PyObject data, String mimetype)"""
 
2322
        return _core_.MemoryFSHandler_AddFileWithMimeType(*args, **kwargs)
 
2323
 
 
2324
    AddFileWithMimeType = staticmethod(AddFileWithMimeType)
2283
2325
    def CanOpen(*args, **kwargs):
2284
2326
        """CanOpen(self, String location) -> bool"""
2285
2327
        return _core_.MemoryFSHandler_CanOpen(*args, **kwargs)
2302
2344
  """MemoryFSHandler_RemoveFile(String filename)"""
2303
2345
  return _core_.MemoryFSHandler_RemoveFile(*args, **kwargs)
2304
2346
 
 
2347
def MemoryFSHandler_AddFileWithMimeType(*args, **kwargs):
 
2348
  """MemoryFSHandler_AddFileWithMimeType(String filename, PyObject data, String mimetype)"""
 
2349
  return _core_.MemoryFSHandler_AddFileWithMimeType(*args, **kwargs)
 
2350
 
2305
2351
IMAGE_ALPHA_TRANSPARENT = _core_.IMAGE_ALPHA_TRANSPARENT
2306
2352
IMAGE_ALPHA_THRESHOLD = _core_.IMAGE_ALPHA_THRESHOLD
2307
2353
IMAGE_ALPHA_OPAQUE = _core_.IMAGE_ALPHA_OPAQUE
2506
2552
        Constructor.
2507
2553
        """
2508
2554
        _core_.Image_RGBValue_swiginit(self,_core_.new_Image_RGBValue(*args, **kwargs))
 
2555
    __swig_destroy__ = _core_.delete_Image_RGBValue
 
2556
    __del__ = lambda self : None;
2509
2557
    red = property(_core_.Image_RGBValue_red_get, _core_.Image_RGBValue_red_set)
2510
2558
    green = property(_core_.Image_RGBValue_green_get, _core_.Image_RGBValue_green_set)
2511
2559
    blue = property(_core_.Image_RGBValue_blue_get, _core_.Image_RGBValue_blue_set)
2527
2575
        Constructor.
2528
2576
        """
2529
2577
        _core_.Image_HSVValue_swiginit(self,_core_.new_Image_HSVValue(*args, **kwargs))
 
2578
    __swig_destroy__ = _core_.delete_Image_HSVValue
 
2579
    __del__ = lambda self : None;
2530
2580
    hue = property(_core_.Image_HSVValue_hue_get, _core_.Image_HSVValue_hue_set)
2531
2581
    saturation = property(_core_.Image_HSVValue_saturation_get, _core_.Image_HSVValue_saturation_set)
2532
2582
    value = property(_core_.Image_HSVValue_value_get, _core_.Image_HSVValue_value_set)
2884
2934
        """
2885
2935
        return _core_.Image_SaveMimeFile(*args, **kwargs)
2886
2936
 
 
2937
    def SaveStream(*args, **kwargs):
 
2938
        """
 
2939
        SaveStream(self, wxOutputStream stream, int type) -> bool
 
2940
 
 
2941
        Saves an image in the named file.
 
2942
        """
 
2943
        return _core_.Image_SaveStream(*args, **kwargs)
 
2944
 
 
2945
    def SaveMimeStream(*args, **kwargs):
 
2946
        """
 
2947
        SaveMimeStream(self, wxOutputStream stream, String mimetype) -> bool
 
2948
 
 
2949
        Saves an image in the named file.
 
2950
        """
 
2951
        return _core_.Image_SaveMimeStream(*args, **kwargs)
 
2952
 
2887
2953
    def CanReadStream(*args, **kwargs):
2888
2954
        """
2889
2955
        CanReadStream(InputStream stream) -> bool
7016
7082
        Create a new application object, starting the bootstrap process.
7017
7083
        """
7018
7084
        _core_.PyApp_swiginit(self,_core_.new_PyApp(*args, **kwargs))
7019
 
        self._setOORInfo(self, False);PyApp._setCallbackInfo(self, self, PyApp)
 
7085
        self._setOORInfo(self, False);PyApp._setCallbackInfo(self, self, PyApp);self.this.own(True)
7020
7086
 
7021
7087
    __swig_destroy__ = _core_.delete_PyApp
7022
7088
    __del__ = lambda self : None;
8100
8166
  return _core_.GetAccelFromString(*args, **kwargs)
8101
8167
#---------------------------------------------------------------------------
8102
8168
 
 
8169
class WindowList_iterator(object):
 
8170
    """This class serves as an iterator for a wxWindowList object."""
 
8171
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
8172
    def __init__(self): raise AttributeError, "No constructor defined"
 
8173
    __repr__ = _swig_repr
 
8174
    __swig_destroy__ = _core_.delete_WindowList_iterator
 
8175
    __del__ = lambda self : None;
 
8176
    def next(*args, **kwargs):
 
8177
        """next(self) -> Window"""
 
8178
        return _core_.WindowList_iterator_next(*args, **kwargs)
 
8179
 
 
8180
_core_.WindowList_iterator_swigregister(WindowList_iterator)
 
8181
NullAcceleratorTable = cvar.NullAcceleratorTable
 
8182
PanelNameStr = cvar.PanelNameStr
 
8183
 
 
8184
class WindowList(object):
 
8185
    """
 
8186
    This class wraps a wxList-based class and gives it a Python
 
8187
    sequence-like interface.  Sequence operations supported are length,
 
8188
    index access and iteration.
 
8189
    """
 
8190
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
8191
    def __init__(self): raise AttributeError, "No constructor defined"
 
8192
    __repr__ = _swig_repr
 
8193
    __swig_destroy__ = _core_.delete_WindowList
 
8194
    __del__ = lambda self : None;
 
8195
    def __len__(*args, **kwargs):
 
8196
        """__len__(self) -> size_t"""
 
8197
        return _core_.WindowList___len__(*args, **kwargs)
 
8198
 
 
8199
    def __getitem__(*args, **kwargs):
 
8200
        """__getitem__(self, size_t index) -> Window"""
 
8201
        return _core_.WindowList___getitem__(*args, **kwargs)
 
8202
 
 
8203
    def __contains__(*args, **kwargs):
 
8204
        """__contains__(self, Window obj) -> bool"""
 
8205
        return _core_.WindowList___contains__(*args, **kwargs)
 
8206
 
 
8207
    def __iter__(*args, **kwargs):
 
8208
        """__iter__(self) -> WindowList_iterator"""
 
8209
        return _core_.WindowList___iter__(*args, **kwargs)
 
8210
 
 
8211
    def index(*args, **kwargs):
 
8212
        """index(self, Window obj) -> int"""
 
8213
        return _core_.WindowList_index(*args, **kwargs)
 
8214
 
 
8215
    def __repr__(self):
 
8216
        return "wxWindowList: " + repr(list(self))
 
8217
 
 
8218
_core_.WindowList_swigregister(WindowList)
 
8219
 
8103
8220
class VisualAttributes(object):
8104
8221
    """struct containing all the visual attributes of a control"""
8105
8222
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8129
8246
    colFg = property(_get_colFg) 
8130
8247
    colBg = property(_get_colBg) 
8131
8248
_core_.VisualAttributes_swigregister(VisualAttributes)
8132
 
NullAcceleratorTable = cvar.NullAcceleratorTable
8133
 
PanelNameStr = cvar.PanelNameStr
8134
8249
 
8135
8250
WINDOW_VARIANT_NORMAL = _core_.WINDOW_VARIANT_NORMAL
8136
8251
WINDOW_VARIANT_SMALL = _core_.WINDOW_VARIANT_SMALL
9083
9198
 
9084
9199
    def GetChildren(*args, **kwargs):
9085
9200
        """
9086
 
        GetChildren(self) -> PyObject
 
9201
        GetChildren(self) -> WindowList
9087
9202
 
9088
 
        Returns a list of the window's children.  NOTE: Currently this is a
9089
 
        copy of the child window list maintained by the window, so the return
9090
 
        value of this function is only valid as long as the window's children
9091
 
        do not change.
 
9203
        Returns an object containing a list of the window's children.  The
 
9204
        object provides a Python sequence-like interface over the internal
 
9205
        list maintained by the window..
9092
9206
        """
9093
9207
        return _core_.Window_GetChildren(*args, **kwargs)
9094
9208
 
9170
9284
        """
9171
9285
        FindWindowById(self, long winid) -> Window
9172
9286
 
9173
 
        Find a chld of this window by window ID
 
9287
        Find a child of this window by window ID
9174
9288
        """
9175
9289
        return _core_.Window_FindWindowById(*args, **kwargs)
9176
9290
 
9961
10075
        GetHandle(self) -> long
9962
10076
 
9963
10077
        Returns the platform-specific handle (as a long integer) of the
9964
 
        physical window.  Currently on wxMac it returns the handle of the
9965
 
        toplevel parent of the window.
 
10078
        physical window.  On wxMSW this is the win32 window handle, on wxGTK
 
10079
        it is the XWindow ID, and on wxMac it is the ControlRef.
9966
10080
        """
9967
10081
        return _core_.Window_GetHandle(*args, **kwargs)
9968
10082
 
9982
10096
        """
9983
10097
        return _core_.Window_DissociateHandle(*args, **kwargs)
9984
10098
 
 
10099
    def GetGtkWidget(*args, **kwargs):
 
10100
        """
 
10101
        GetGtkWidget(self) -> long
 
10102
 
 
10103
        On wxGTK returns a pointer to the GtkWidget for this window as a long
 
10104
        integer.  On the other platforms this method returns zero.
 
10105
        """
 
10106
        return _core_.Window_GetGtkWidget(*args, **kwargs)
 
10107
 
9985
10108
    def HasScrollbar(*args, **kwargs):
9986
10109
        """
9987
10110
        HasScrollbar(self, int orient) -> bool
10445
10568
    Shown = property(IsShown,Show,doc="See `IsShown` and `Show`") 
10446
10569
    Enabled = property(IsEnabled,Enable,doc="See `IsEnabled` and `Enable`") 
10447
10570
    TopLevel = property(IsTopLevel,doc="See `IsTopLevel`") 
 
10571
    GtkWidget = property(GetGtkWidget) 
10448
10572
_core_.Window_swigregister(Window)
10449
10573
 
10450
10574
def PreWindow(*args, **kwargs):
10580
10704
 
10581
10705
def GetTopLevelWindows(*args):
10582
10706
  """
10583
 
    GetTopLevelWindows() -> PyObject
10584
 
 
10585
 
    Returns a list of the the application's top-level windows, (frames,
10586
 
    dialogs, etc.)  NOTE: Currently this is a copy of the list maintained
10587
 
    by wxWidgets, and so it is only valid as long as no top-level windows
10588
 
    are closed or new top-level windows are created.
10589
 
 
 
10707
    GetTopLevelWindows() -> WindowList
 
10708
 
 
10709
    Returns a list-like object of the the application's top-level windows, (frames,
 
10710
    dialogs, etc.)
10590
10711
    """
10591
10712
  return _core_.GetTopLevelWindows(*args)
10592
10713
#---------------------------------------------------------------------------
10662
10783
 
10663
10784
#---------------------------------------------------------------------------
10664
10785
 
 
10786
class MenuItemList_iterator(object):
 
10787
    """This class serves as an iterator for a wxMenuItemList object."""
 
10788
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
10789
    def __init__(self): raise AttributeError, "No constructor defined"
 
10790
    __repr__ = _swig_repr
 
10791
    __swig_destroy__ = _core_.delete_MenuItemList_iterator
 
10792
    __del__ = lambda self : None;
 
10793
    def next(*args, **kwargs):
 
10794
        """next(self) -> MenuItem"""
 
10795
        return _core_.MenuItemList_iterator_next(*args, **kwargs)
 
10796
 
 
10797
_core_.MenuItemList_iterator_swigregister(MenuItemList_iterator)
 
10798
DefaultValidator = cvar.DefaultValidator
 
10799
 
 
10800
class MenuItemList(object):
 
10801
    """
 
10802
    This class wraps a wxList-based class and gives it a Python
 
10803
    sequence-like interface.  Sequence operations supported are length,
 
10804
    index access and iteration.
 
10805
    """
 
10806
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
10807
    def __init__(self): raise AttributeError, "No constructor defined"
 
10808
    __repr__ = _swig_repr
 
10809
    __swig_destroy__ = _core_.delete_MenuItemList
 
10810
    __del__ = lambda self : None;
 
10811
    def __len__(*args, **kwargs):
 
10812
        """__len__(self) -> size_t"""
 
10813
        return _core_.MenuItemList___len__(*args, **kwargs)
 
10814
 
 
10815
    def __getitem__(*args, **kwargs):
 
10816
        """__getitem__(self, size_t index) -> MenuItem"""
 
10817
        return _core_.MenuItemList___getitem__(*args, **kwargs)
 
10818
 
 
10819
    def __contains__(*args, **kwargs):
 
10820
        """__contains__(self, MenuItem obj) -> bool"""
 
10821
        return _core_.MenuItemList___contains__(*args, **kwargs)
 
10822
 
 
10823
    def __iter__(*args, **kwargs):
 
10824
        """__iter__(self) -> MenuItemList_iterator"""
 
10825
        return _core_.MenuItemList___iter__(*args, **kwargs)
 
10826
 
 
10827
    def index(*args, **kwargs):
 
10828
        """index(self, MenuItem obj) -> int"""
 
10829
        return _core_.MenuItemList_index(*args, **kwargs)
 
10830
 
 
10831
    def __repr__(self):
 
10832
        return "wxMenuItemList: " + repr(list(self))
 
10833
 
 
10834
_core_.MenuItemList_swigregister(MenuItemList)
 
10835
 
10665
10836
class Menu(EvtHandler):
10666
10837
    """Proxy of C++ Menu class"""
10667
10838
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
10804
10975
        return _core_.Menu_GetMenuItemCount(*args, **kwargs)
10805
10976
 
10806
10977
    def GetMenuItems(*args, **kwargs):
10807
 
        """GetMenuItems(self) -> PyObject"""
 
10978
        """GetMenuItems(self) -> MenuItemList"""
10808
10979
        return _core_.Menu_GetMenuItems(*args, **kwargs)
10809
10980
 
10810
10981
    def FindItem(*args, **kwargs):
10907
11078
        """GetParent(self) -> Menu"""
10908
11079
        return _core_.Menu_GetParent(*args, **kwargs)
10909
11080
 
 
11081
    def GetLabelText(*args, **kwargs):
 
11082
        """GetLabelText(self, int itemid) -> String"""
 
11083
        return _core_.Menu_GetLabelText(*args, **kwargs)
 
11084
 
10910
11085
    EventHandler = property(GetEventHandler,SetEventHandler,doc="See `GetEventHandler` and `SetEventHandler`") 
10911
11086
    HelpString = property(GetHelpString,SetHelpString,doc="See `GetHelpString` and `SetHelpString`") 
10912
11087
    InvokingWindow = property(GetInvokingWindow,SetInvokingWindow,doc="See `GetInvokingWindow` and `SetInvokingWindow`") 
10917
11092
    Style = property(GetStyle,doc="See `GetStyle`") 
10918
11093
    Title = property(GetTitle,SetTitle,doc="See `GetTitle` and `SetTitle`") 
10919
11094
_core_.Menu_swigregister(Menu)
10920
 
DefaultValidator = cvar.DefaultValidator
10921
11095
 
10922
11096
#---------------------------------------------------------------------------
10923
11097
 
11044
11218
        return _core_.MenuBar_GetAutoWindowMenu(*args, **kwargs)
11045
11219
 
11046
11220
    GetAutoWindowMenu = staticmethod(GetAutoWindowMenu)
 
11221
    def GetMenuLabel(*args, **kwargs):
 
11222
        """GetMenuLabel(self, size_t pos) -> String"""
 
11223
        return _core_.MenuBar_GetMenuLabel(*args, **kwargs)
 
11224
 
 
11225
    def SetMenuLabel(*args, **kwargs):
 
11226
        """SetMenuLabel(self, size_t pos, String label)"""
 
11227
        return _core_.MenuBar_SetMenuLabel(*args, **kwargs)
 
11228
 
 
11229
    def GetMenuLabelText(*args, **kwargs):
 
11230
        """GetMenuLabelText(self, size_t pos) -> String"""
 
11231
        return _core_.MenuBar_GetMenuLabelText(*args, **kwargs)
 
11232
 
11047
11233
    def GetMenus(self):
11048
11234
        """Return a list of (menu, label) items for the menus in the MenuBar. """
11049
11235
        return [(self.GetMenu(i), self.GetLabelTop(i)) 
11255
11441
        """ResetOwnerDrawn(self)"""
11256
11442
        return _core_.MenuItem_ResetOwnerDrawn(*args, **kwargs)
11257
11443
 
 
11444
    def GetItemLabel(*args, **kwargs):
 
11445
        """GetItemLabel(self) -> String"""
 
11446
        return _core_.MenuItem_GetItemLabel(*args, **kwargs)
 
11447
 
 
11448
    def SetItemLabel(*args, **kwargs):
 
11449
        """SetItemLabel(self, String str)"""
 
11450
        return _core_.MenuItem_SetItemLabel(*args, **kwargs)
 
11451
 
 
11452
    def GetItemLabelText(*args, **kwargs):
 
11453
        """GetItemLabelText(self) -> String"""
 
11454
        return _core_.MenuItem_GetItemLabelText(*args, **kwargs)
 
11455
 
 
11456
    def GetLabelText(*args, **kwargs):
 
11457
        """GetLabelText(String label) -> String"""
 
11458
        return _core_.MenuItem_GetLabelText(*args, **kwargs)
 
11459
 
 
11460
    GetLabelText = staticmethod(GetLabelText)
11258
11461
    Accel = property(GetAccel,SetAccel,doc="See `GetAccel` and `SetAccel`") 
11259
11462
    BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`") 
11260
11463
    Bitmap = property(GetBitmap,SetBitmap,doc="See `GetBitmap` and `SetBitmap`") 
11269
11472
    SubMenu = property(GetSubMenu,SetSubMenu,doc="See `GetSubMenu` and `SetSubMenu`") 
11270
11473
    Text = property(GetText,SetText,doc="See `GetText` and `SetText`") 
11271
11474
    TextColour = property(GetTextColour,SetTextColour,doc="See `GetTextColour` and `SetTextColour`") 
 
11475
    ItemLabel = property(GetItemLabel) 
11272
11476
_core_.MenuItem_swigregister(MenuItem)
11273
11477
 
11274
11478
def MenuItem_GetLabelFromText(*args, **kwargs):
11279
11483
  """MenuItem_GetDefaultMarginWidth() -> int"""
11280
11484
  return _core_.MenuItem_GetDefaultMarginWidth(*args)
11281
11485
 
 
11486
def MenuItem_GetLabelText(*args, **kwargs):
 
11487
  """MenuItem_GetLabelText(String label) -> String"""
 
11488
  return _core_.MenuItem_GetLabelText(*args, **kwargs)
 
11489
 
11282
11490
#---------------------------------------------------------------------------
11283
11491
 
11284
11492
class Control(Window):
11807
12015
    """
11808
12016
  return _core_.SizerFlags_GetDefaultBorder(*args)
11809
12017
 
 
12018
#---------------------------------------------------------------------------
 
12019
 
 
12020
class SizerItemList_iterator(object):
 
12021
    """This class serves as an iterator for a wxSizerItemList object."""
 
12022
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
12023
    def __init__(self): raise AttributeError, "No constructor defined"
 
12024
    __repr__ = _swig_repr
 
12025
    __swig_destroy__ = _core_.delete_SizerItemList_iterator
 
12026
    __del__ = lambda self : None;
 
12027
    def next(*args, **kwargs):
 
12028
        """next(self) -> SizerItem"""
 
12029
        return _core_.SizerItemList_iterator_next(*args, **kwargs)
 
12030
 
 
12031
_core_.SizerItemList_iterator_swigregister(SizerItemList_iterator)
 
12032
 
 
12033
class SizerItemList(object):
 
12034
    """
 
12035
    This class wraps a wxList-based class and gives it a Python
 
12036
    sequence-like interface.  Sequence operations supported are length,
 
12037
    index access and iteration.
 
12038
    """
 
12039
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
12040
    def __init__(self): raise AttributeError, "No constructor defined"
 
12041
    __repr__ = _swig_repr
 
12042
    __swig_destroy__ = _core_.delete_SizerItemList
 
12043
    __del__ = lambda self : None;
 
12044
    def __len__(*args, **kwargs):
 
12045
        """__len__(self) -> size_t"""
 
12046
        return _core_.SizerItemList___len__(*args, **kwargs)
 
12047
 
 
12048
    def __getitem__(*args, **kwargs):
 
12049
        """__getitem__(self, size_t index) -> SizerItem"""
 
12050
        return _core_.SizerItemList___getitem__(*args, **kwargs)
 
12051
 
 
12052
    def __contains__(*args, **kwargs):
 
12053
        """__contains__(self, SizerItem obj) -> bool"""
 
12054
        return _core_.SizerItemList___contains__(*args, **kwargs)
 
12055
 
 
12056
    def __iter__(*args, **kwargs):
 
12057
        """__iter__(self) -> SizerItemList_iterator"""
 
12058
        return _core_.SizerItemList___iter__(*args, **kwargs)
 
12059
 
 
12060
    def index(*args, **kwargs):
 
12061
        """index(self, SizerItem obj) -> int"""
 
12062
        return _core_.SizerItemList_index(*args, **kwargs)
 
12063
 
 
12064
    def __repr__(self):
 
12065
        return "wxSizerItemList: " + repr(list(self))
 
12066
 
 
12067
_core_.SizerItemList_swigregister(SizerItemList)
 
12068
 
11810
12069
class SizerItem(Object):
11811
12070
    """
11812
12071
    The wx.SizerItem class is used to track the position, size and other
12628
12887
 
12629
12888
    def GetChildren(*args, **kwargs):
12630
12889
        """
12631
 
        GetChildren(self) -> list
 
12890
        GetChildren(self) -> SizerItemList
12632
12891
 
12633
 
        Returns a list of all the `wx.SizerItem` objects managed by the sizer.
 
12892
        Returns all of the `wx.SizerItem` objects managed by the sizer in a
 
12893
        list-like object.
12634
12894
        """
12635
12895
        return _core_.Sizer_GetChildren(*args, **kwargs)
12636
12896