wx.lib.resizewidget.ResizeWidget¶
Reparents a given widget into a specialized panel that provides a resize handle for the widget.
Class Hierarchy¶
Known Superclasses¶
Methods Summary¶
Default class constructor. |
|
Add the child to manage. |
|
Adjust the size to the child. |
|
Adjust to given size. |
|
Return the best size. |
|
Enable resizing. |
|
Get the managed child. |
|
Is resize enabled? |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Remove the managed child. |
|
Set the colors of handles. |
|
Set the dimensions of handles. |
|
Set a managed child. |
Properties Summary¶
Get the managed child. |
Class API¶
- class ResizeWidget(wx.Panel)¶
Reparents a given widget into a specialized panel that provides a resize handle for the widget.
Methods¶
- __init__(self, \*args, \*\*kw)¶
Default class constructor.
- Parameters:
args – arguments will be passed on to the wx.Panel
kw – key words will be passed on to the wx.Panel
- AddChild(self, child)¶
Add the child to manage.
- Parameters:
child – the child to manage.
- AdjustToChild(self)¶
Adjust the size to the child.
- AdjustToSize(self, size)¶
Adjust to given size.
- Parameters:
size – size to adjust to.
- DoGetBestSize(self)¶
Return the best size.
- EnableResize(self, enable=True)¶
Enable resizing.
- Parameters:
enable (boolean) – enable or disable resizing.
- GetManagedChild(self)¶
Get the managed child.
- IsResizeEnabled(self)¶
Is resize enabled?
- OnLeftDown(self, evt)¶
Handles the
wx.EVT_LEFT_DOWN
event forResizeWidget
.- Parameters:
evt – a
MouseEvent
event to be processed.
- OnLeftUp(self, evt)¶
Handles the
wx.EVT_LEFT_UP
event forResizeWidget
.- Parameters:
evt – a
MouseEvent
event to be processed.
- OnMouseLeave(self, evt)¶
Handles the
wx.EVT_LEAVE_WINDOW
event forResizeWidget
.- Parameters:
evt – a
MouseEvent
event to be processed.
- OnMouseMove(self, evt)¶
Handles the
wx.EVT_MOTION
event forResizeWidget
.- Parameters:
evt – a
MouseEvent
event to be processed.
- OnPaint(self, evt)¶
Handles the
wx.EVT_PAINT
event forResizeWidget
.- Parameters:
evt – a
PaintEvent
event to be processed.
- OnSize(self, evt)¶
Handles the
wx.EVT_SIZE
event forResizeWidget
.- Parameters:
evt – a
wx.SizeEvent
event to be processed.
- RemoveChild(self, child)¶
Remove the managed child.
- Parameters:
child – child to remove.
- SetColors(self, pen=RW_PEN, fill=RW_FILL, fill2=RW_FILL2)¶
Set the colors of handles.
- Parameters:
pen – the pen color
fill – the fill color
fill2 – the secondary fill color
- SetDimensions(self, thickness=RW_THICKNESS, length=RW_LENGTH)¶
Set the dimensions of handles.
- Parameters:
thickness – the thickness of the handles
length – the length of the handles
- SetManagedChild(self, child)¶
Set a managed child.
- Parameters:
child – child to manage
Properties¶
- ManagedChild¶
Get the managed child.