📄 _windows.py
字号:
#---------------------------------------------------------------------------
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):
"""Proxy of C++ SashWindow class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""
__init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
String name=SashNameStr) -> SashWindow
"""
_windows_.SashWindow_swiginit(self,_windows_.new_SashWindow(*args, **kwargs))
self._setOORInfo(self)
def Create(*args, **kwargs):
"""
Create(self, Window parent, int id=-1, 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)
_windows_.SashWindow_swigregister(SashWindow)
SashNameStr = cvar.SashNameStr
SashLayoutNameStr = cvar.SashLayoutNameStr
def PreSashWindow(*args, **kwargs):
"""PreSashWindow() -> SashWindow"""
val = _windows_.new_PreSashWindow(*args, **kwargs)
return val
SASH_STATUS_OK = _windows_.SASH_STATUS_OK
SASH_STATUS_OUT_OF_RANGE = _windows_.SASH_STATUS_OUT_OF_RANGE
class SashEvent(_core.CommandEvent):
"""Proxy of C++ SashEvent class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
_windows_.SashEvent_swiginit(self,_windows_.new_SashEvent(*args, **kwargs))
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)
_windows_.SashEvent_swigregister(SashEvent)
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):
"""Proxy of C++ QueryLayoutInfoEvent class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self, int id=0) -> QueryLayoutInfoEvent"""
_windows_.QueryLayoutInfoEvent_swiginit(self,_windows_.new_QueryLayoutInfoEvent(*args, **kwargs))
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)
_windows_.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent)
class CalculateLayoutEvent(_core.Event):
"""Proxy of C++ CalculateLayoutEvent class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self, int id=0) -> CalculateLayoutEvent"""
_windows_.CalculateLayoutEvent_swiginit(self,_windows_.new_CalculateLayoutEvent(*args, **kwargs))
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)
_windows_.CalculateLayoutEvent_swigregister(CalculateLayoutEvent)
EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO )
EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT )
class SashLayoutWindow(SashWindow):
"""Proxy of C++ SashLayoutWindow class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""
__init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
String name=SashLayoutNameStr) -> SashLayoutWindow
"""
_windows_.SashLayoutWindow_swiginit(self,_windows_.new_SashLayoutWindow(*args, **kwargs))
self._setOORInfo(self)
def Create(*args, **kwargs):
"""
Create(self, Window parent, int id=-1, 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)
_windows_.SashLayoutWindow_swigregister(SashLayoutWindow)
def PreSashLayoutWindow(*args, **kwargs):
"""PreSashLayoutWindow() -> SashLayoutWindow"""
val = _windows_.new_PreSashLayoutWindow(*args, **kwargs)
return val
class LayoutAlgorithm(_core.Object):
"""Proxy of C++ LayoutAlgorithm class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self) -> LayoutAlgorithm"""
_windows_.LayoutAlgorithm_swiginit(self,_windows_.new_LayoutAlgorithm(*args, **kwargs))
__swig_destroy__ = _windows_.delete_LayoutAlgorithm
__del__ = lambda self : None;
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(*a
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -