wx.lib.resizewidget.ResizeWidget¶Reparents a given widget into a specialized panel that provides a resize handle for the widget.
Class Hierarchy¶
Inheritance diagram for class ResizeWidget:

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¶ResizeWidget(wx.Panel)¶Reparents a given widget into a specialized panel that provides a resize handle for the widget.
__init__(self, *args, **kw)¶Default class constructor.
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.
child – the child to manage.
AdjustToChild(self)¶Adjust the size to the child.
AdjustToSize(self, size)¶Adjust to given size.
size – size to adjust to.
DoGetBestSize(self)¶Return the best size.
EnableResize(self, enable=True)¶Enable resizing.
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 for ResizeWidget.
evt – a MouseEvent event to be processed.
OnLeftUp(self, evt)¶Handles the wx.EVT_LEFT_UP event for ResizeWidget.
evt – a MouseEvent event to be processed.
OnMouseLeave(self, evt)¶Handles the wx.EVT_LEAVE_WINDOW event for ResizeWidget.
evt – a MouseEvent event to be processed.
OnMouseMove(self, evt)¶Handles the wx.EVT_MOTION event for ResizeWidget.
evt – a MouseEvent event to be processed.
OnPaint(self, evt)¶Handles the wx.EVT_PAINT event for ResizeWidget.
evt – a PaintEvent event to be processed.
OnSize(self, evt)¶Handles the wx.EVT_SIZE event for ResizeWidget.
evt – a wx.SizeEvent event to be processed.
RemoveChild(self, child)¶Remove the managed child.
child – child to remove.
SetColors(self, pen=RW_PEN, fill=RW_FILL, fill2=RW_FILL2)¶Set the colors of handles.
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.
thickness – the thickness of the handles
length – the length of the handles
SetManagedChild(self, child)¶Set a managed child.
child – child to manage
ManagedChild¶Get the managed child.