phoenix_title wx.lib.resizewidget.ResizeWidget

Reparents a given widget into a specialized panel that provides a resize handle for the widget.


class_hierarchy Class Hierarchy

Inheritance diagram for class ResizeWidget:

super_classes Known Superclasses

wx.Panel


method_summary Methods Summary

__init__

Default class constructor.

AddChild

Add the child to manage.

AdjustToChild

Adjust the size to the child.

AdjustToSize

Adjust to given size.

DoGetBestSize

Return the best size.

EnableResize

Enable resizing.

GetManagedChild

Get the managed child.

IsResizeEnabled

Is resize enabled?

OnLeftDown

Handles the wx.EVT_LEFT_DOWN event for ResizeWidget.

OnLeftUp

Handles the wx.EVT_LEFT_UP event for ResizeWidget.

OnMouseLeave

Handles the wx.EVT_LEAVE_WINDOW event for ResizeWidget.

OnMouseMove

Handles the wx.EVT_MOTION event for ResizeWidget.

OnPaint

Handles the wx.EVT_PAINT event for ResizeWidget.

OnSize

Handles the wx.EVT_SIZE event for ResizeWidget.

RemoveChild

Remove the managed child.

SetColors

Set the colors of handles.

SetDimensions

Set the dimensions of handles.

SetManagedChild

Set a managed child.


property_summary Properties Summary

ManagedChild

Get the managed child.


api 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 for ResizeWidget.

Parameters:

evt – a MouseEvent event to be processed.



OnLeftUp(self, evt)

Handles the wx.EVT_LEFT_UP event for ResizeWidget.

Parameters:

evt – a MouseEvent event to be processed.



OnMouseLeave(self, evt)

Handles the wx.EVT_LEAVE_WINDOW event for ResizeWidget.

Parameters:

evt – a MouseEvent event to be processed.



OnMouseMove(self, evt)

Handles the wx.EVT_MOTION event for ResizeWidget.

Parameters:

evt – a MouseEvent event to be processed.



OnPaint(self, evt)

Handles the wx.EVT_PAINT event for ResizeWidget.

Parameters:

evt – a PaintEvent event to be processed.



OnSize(self, evt)

Handles the wx.EVT_SIZE event for ResizeWidget.

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.