wx.lib.resizewidget.ResizeWidget¶Reparents a given widget into a specialized panel that provides a resize handle for the widget.
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. |
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.
| Parameters: |
|
|---|
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: |
|
|---|
SetDimensions(self, thickness=RW_THICKNESS, length=RW_LENGTH)¶Set the dimensions of handles.
| Parameters: |
|
|---|
SetManagedChild(self, child)¶Set a managed child.
| Parameters: | child – child to manage |
|---|
ManagedChild¶Get the managed child.