This is a mixin class that provides some methods suitable for use with objects that have a single (x,y) coordinate pair.
wx.lib.floatcanvas.FCObjects.Arc
, wx.lib.floatcanvas.FCObjects.Arrow
, wx.lib.floatcanvas.FCObjects.Circle
, wx.lib.floatcanvas.FCObjects.PieChart
, wx.lib.floatcanvas.FCObjects.Point
, wx.lib.floatcanvas.FCObjects.RectEllipse
, wx.lib.floatcanvas.FCObjects.SquarePoint
, wx.lib.floatcanvas.FCObjects.TextObjectMixin
Calculate the bounding box. |
|
Moves the object by delta, where delta is a (dx, dy) pair. |
|
XYObjectMixin
¶This is a mixin class that provides some methods suitable for use with objects that have a single (x,y) coordinate pair.
CalcBoundingBox
(self)¶Calculate the bounding box.
Move
(self, Delta)¶Moves the object by delta, where delta is a (dx, dy) pair.
Delta – is a (dx, dy) pair ideally a NumPy array of shape (2, )
SetPoint
(self, xy)¶