1674
1675
__repr__ = _swig_repr
1675
1676
def __init__(self, *args, **kwargs):
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
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)
1693
1694
def GetLeft(*args, **kwargs):
1694
"""GetLeft(self) -> wxDouble"""
1695
"""GetLeft(self) -> Double"""
1695
1696
return _core_.Rect2D_GetLeft(*args, **kwargs)
1697
1698
def SetLeft(*args, **kwargs):
1698
"""SetLeft(self, wxDouble n)"""
1699
"""SetLeft(self, Double n)"""
1699
1700
return _core_.Rect2D_SetLeft(*args, **kwargs)
1701
1702
def MoveLeftTo(*args, **kwargs):
1702
"""MoveLeftTo(self, wxDouble n)"""
1703
"""MoveLeftTo(self, Double n)"""
1703
1704
return _core_.Rect2D_MoveLeftTo(*args, **kwargs)
1705
1706
def GetTop(*args, **kwargs):
1706
"""GetTop(self) -> wxDouble"""
1707
"""GetTop(self) -> Double"""
1707
1708
return _core_.Rect2D_GetTop(*args, **kwargs)
1709
1710
def SetTop(*args, **kwargs):
1710
"""SetTop(self, wxDouble n)"""
1711
"""SetTop(self, Double n)"""
1711
1712
return _core_.Rect2D_SetTop(*args, **kwargs)
1713
1714
def MoveTopTo(*args, **kwargs):
1714
"""MoveTopTo(self, wxDouble n)"""
1715
"""MoveTopTo(self, Double n)"""
1715
1716
return _core_.Rect2D_MoveTopTo(*args, **kwargs)
1717
1718
def GetBottom(*args, **kwargs):
1718
"""GetBottom(self) -> wxDouble"""
1719
"""GetBottom(self) -> Double"""
1719
1720
return _core_.Rect2D_GetBottom(*args, **kwargs)
1721
1722
def SetBottom(*args, **kwargs):
1722
"""SetBottom(self, wxDouble n)"""
1723
"""SetBottom(self, Double n)"""
1723
1724
return _core_.Rect2D_SetBottom(*args, **kwargs)
1725
1726
def MoveBottomTo(*args, **kwargs):
1726
"""MoveBottomTo(self, wxDouble n)"""
1727
"""MoveBottomTo(self, Double n)"""
1727
1728
return _core_.Rect2D_MoveBottomTo(*args, **kwargs)
1729
1730
def GetRight(*args, **kwargs):
1730
"""GetRight(self) -> wxDouble"""
1731
"""GetRight(self) -> Double"""
1731
1732
return _core_.Rect2D_GetRight(*args, **kwargs)
1733
1734
def SetRight(*args, **kwargs):
1734
"""SetRight(self, wxDouble n)"""
1735
"""SetRight(self, Double n)"""
1735
1736
return _core_.Rect2D_SetRight(*args, **kwargs)
1737
1738
def MoveRightTo(*args, **kwargs):
1738
"""MoveRightTo(self, wxDouble n)"""
1739
"""MoveRightTo(self, Double n)"""
1739
1740
return _core_.Rect2D_MoveRightTo(*args, **kwargs)
1741
1742
def GetLeftTop(*args, **kwargs):
1821
1822
def Inset(*args):
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)
1826
1827
return _core_.Rect2D_Inset(*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)
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):
2009
return _core_.OutputStream_close(*args, **kwargs)
2011
def flush(*args, **kwargs):
2013
return _core_.OutputStream_flush(*args, **kwargs)
2015
def eof(*args, **kwargs):
2016
"""eof(self) -> bool"""
2017
return _core_.OutputStream_eof(*args, **kwargs)
2019
def seek(*args, **kwargs):
2020
"""seek(self, int offset, int whence=0)"""
2021
return _core_.OutputStream_seek(*args, **kwargs)
2023
def tell(*args, **kwargs):
2024
"""tell(self) -> int"""
2025
return _core_.OutputStream_tell(*args, **kwargs)
2002
2027
def write(*args, **kwargs):
2003
"""write(self, PyObject obj)"""
2028
"""write(self, PyObject data)"""
2004
2029
return _core_.OutputStream_write(*args, **kwargs)
2031
def PutC(*args, **kwargs):
2032
"""PutC(self, char c)"""
2033
return _core_.OutputStream_PutC(*args, **kwargs)
2006
2035
def LastWrite(*args, **kwargs):
2007
2036
"""LastWrite(self) -> size_t"""
2008
2037
return _core_.OutputStream_LastWrite(*args, **kwargs)
2039
def SeekO(*args, **kwargs):
2040
"""SeekO(self, unsigned long pos, int mode=FromStart) -> unsigned long"""
2041
return _core_.OutputStream_SeekO(*args, **kwargs)
2043
def TellO(*args, **kwargs):
2044
"""TellO(self) -> unsigned long"""
2045
return _core_.OutputStream_TellO(*args, **kwargs)
2010
2047
_core_.OutputStream_swigregister(OutputStream)
2012
2049
#---------------------------------------------------------------------------
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)
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)
2347
def MemoryFSHandler_AddFileWithMimeType(*args, **kwargs):
2348
"""MemoryFSHandler_AddFileWithMimeType(String filename, PyObject data, String mimetype)"""
2349
return _core_.MemoryFSHandler_AddFileWithMimeType(*args, **kwargs)
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
2885
2935
return _core_.Image_SaveMimeFile(*args, **kwargs)
2937
def SaveStream(*args, **kwargs):
2939
SaveStream(self, wxOutputStream stream, int type) -> bool
2941
Saves an image in the named file.
2943
return _core_.Image_SaveStream(*args, **kwargs)
2945
def SaveMimeStream(*args, **kwargs):
2947
SaveMimeStream(self, wxOutputStream stream, String mimetype) -> bool
2949
Saves an image in the named file.
2951
return _core_.Image_SaveMimeStream(*args, **kwargs)
2887
2953
def CanReadStream(*args, **kwargs):
2889
2955
CanReadStream(InputStream stream) -> bool
7016
7082
Create a new application object, starting the bootstrap process.
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)
7021
7087
__swig_destroy__ = _core_.delete_PyApp
7022
7088
__del__ = lambda self : None;
8100
8166
return _core_.GetAccelFromString(*args, **kwargs)
8101
8167
#---------------------------------------------------------------------------
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)
8180
_core_.WindowList_iterator_swigregister(WindowList_iterator)
8181
NullAcceleratorTable = cvar.NullAcceleratorTable
8182
PanelNameStr = cvar.PanelNameStr
8184
class WindowList(object):
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.
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)
8199
def __getitem__(*args, **kwargs):
8200
"""__getitem__(self, size_t index) -> Window"""
8201
return _core_.WindowList___getitem__(*args, **kwargs)
8203
def __contains__(*args, **kwargs):
8204
"""__contains__(self, Window obj) -> bool"""
8205
return _core_.WindowList___contains__(*args, **kwargs)
8207
def __iter__(*args, **kwargs):
8208
"""__iter__(self) -> WindowList_iterator"""
8209
return _core_.WindowList___iter__(*args, **kwargs)
8211
def index(*args, **kwargs):
8212
"""index(self, Window obj) -> int"""
8213
return _core_.WindowList_index(*args, **kwargs)
8216
return "wxWindowList: " + repr(list(self))
8218
_core_.WindowList_swigregister(WindowList)
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')
9084
9199
def GetChildren(*args, **kwargs):
9086
GetChildren(self) -> PyObject
9201
GetChildren(self) -> WindowList
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
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..
9093
9207
return _core_.Window_GetChildren(*args, **kwargs)
9983
10097
return _core_.Window_DissociateHandle(*args, **kwargs)
10099
def GetGtkWidget(*args, **kwargs):
10101
GetGtkWidget(self) -> long
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.
10106
return _core_.Window_GetGtkWidget(*args, **kwargs)
9985
10108
def HasScrollbar(*args, **kwargs):
9987
10110
HasScrollbar(self, int orient) -> bool
10581
10705
def GetTopLevelWindows(*args):
10583
GetTopLevelWindows() -> PyObject
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.
10707
GetTopLevelWindows() -> WindowList
10709
Returns a list-like object of the the application's top-level windows, (frames,
10591
10712
return _core_.GetTopLevelWindows(*args)
10592
10713
#---------------------------------------------------------------------------
10663
10784
#---------------------------------------------------------------------------
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)
10797
_core_.MenuItemList_iterator_swigregister(MenuItemList_iterator)
10798
DefaultValidator = cvar.DefaultValidator
10800
class MenuItemList(object):
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.
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)
10815
def __getitem__(*args, **kwargs):
10816
"""__getitem__(self, size_t index) -> MenuItem"""
10817
return _core_.MenuItemList___getitem__(*args, **kwargs)
10819
def __contains__(*args, **kwargs):
10820
"""__contains__(self, MenuItem obj) -> bool"""
10821
return _core_.MenuItemList___contains__(*args, **kwargs)
10823
def __iter__(*args, **kwargs):
10824
"""__iter__(self) -> MenuItemList_iterator"""
10825
return _core_.MenuItemList___iter__(*args, **kwargs)
10827
def index(*args, **kwargs):
10828
"""index(self, MenuItem obj) -> int"""
10829
return _core_.MenuItemList_index(*args, **kwargs)
10831
def __repr__(self):
10832
return "wxMenuItemList: " + repr(list(self))
10834
_core_.MenuItemList_swigregister(MenuItemList)
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')
10907
11078
"""GetParent(self) -> Menu"""
10908
11079
return _core_.Menu_GetParent(*args, **kwargs)
11081
def GetLabelText(*args, **kwargs):
11082
"""GetLabelText(self, int itemid) -> String"""
11083
return _core_.Menu_GetLabelText(*args, **kwargs)
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`")
11044
11218
return _core_.MenuBar_GetAutoWindowMenu(*args, **kwargs)
11046
11220
GetAutoWindowMenu = staticmethod(GetAutoWindowMenu)
11221
def GetMenuLabel(*args, **kwargs):
11222
"""GetMenuLabel(self, size_t pos) -> String"""
11223
return _core_.MenuBar_GetMenuLabel(*args, **kwargs)
11225
def SetMenuLabel(*args, **kwargs):
11226
"""SetMenuLabel(self, size_t pos, String label)"""
11227
return _core_.MenuBar_SetMenuLabel(*args, **kwargs)
11229
def GetMenuLabelText(*args, **kwargs):
11230
"""GetMenuLabelText(self, size_t pos) -> String"""
11231
return _core_.MenuBar_GetMenuLabelText(*args, **kwargs)
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)
11444
def GetItemLabel(*args, **kwargs):
11445
"""GetItemLabel(self) -> String"""
11446
return _core_.MenuItem_GetItemLabel(*args, **kwargs)
11448
def SetItemLabel(*args, **kwargs):
11449
"""SetItemLabel(self, String str)"""
11450
return _core_.MenuItem_SetItemLabel(*args, **kwargs)
11452
def GetItemLabelText(*args, **kwargs):
11453
"""GetItemLabelText(self) -> String"""
11454
return _core_.MenuItem_GetItemLabelText(*args, **kwargs)
11456
def GetLabelText(*args, **kwargs):
11457
"""GetLabelText(String label) -> String"""
11458
return _core_.MenuItem_GetLabelText(*args, **kwargs)
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`")
11808
12016
return _core_.SizerFlags_GetDefaultBorder(*args)
12018
#---------------------------------------------------------------------------
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)
12031
_core_.SizerItemList_iterator_swigregister(SizerItemList_iterator)
12033
class SizerItemList(object):
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.
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)
12048
def __getitem__(*args, **kwargs):
12049
"""__getitem__(self, size_t index) -> SizerItem"""
12050
return _core_.SizerItemList___getitem__(*args, **kwargs)
12052
def __contains__(*args, **kwargs):
12053
"""__contains__(self, SizerItem obj) -> bool"""
12054
return _core_.SizerItemList___contains__(*args, **kwargs)
12056
def __iter__(*args, **kwargs):
12057
"""__iter__(self) -> SizerItemList_iterator"""
12058
return _core_.SizerItemList___iter__(*args, **kwargs)
12060
def index(*args, **kwargs):
12061
"""index(self, SizerItem obj) -> int"""
12062
return _core_.SizerItemList_index(*args, **kwargs)
12064
def __repr__(self):
12065
return "wxSizerItemList: " + repr(list(self))
12067
_core_.SizerItemList_swigregister(SizerItemList)
11810
12069
class SizerItem(Object):
11812
12071
The wx.SizerItem class is used to track the position, size and other