Phoenix Logo

phoenix_title wx.lib.ogl.lines.LabelShape

The label shape class.


class_hierarchy Class Hierarchy

Inheritance diagram for class LabelShape:

method_summary Methods Summary

__init__ Default class constructor.
OnBeginDragLeft The begin drag left handler.
OnDragLeft The drag left handler.
OnDraw The draw handler.
OnDrawContents not implemented???
OnEndDragLeft The end drag left handler.
OnLeftClick The left click handler.
OnMovePre The move ‘pre’ handler.???
OnRightClick The right click handler.

api Class API



class LabelShape(RectangleShape)

The label shape class.


Methods



__init__(self, parent, region, w, h)

Default class constructor.

Parameters:
  • parent – the parent an instance of Line
  • region – the shape region an instance of ShapeRegion
  • w – width in points
  • h – heigth in points


OnBeginDragLeft(self, x, y, keys = 0, attachment = 0)

The begin drag left handler.



OnDragLeft(self, draw, x, y, keys = 0, attachment = 0)

The drag left handler.



OnDraw(self, dc)

The draw handler.



OnDrawContents(self, dc)

not implemented???



OnEndDragLeft(self, x, y, keys = 0, attachment = 0)

The end drag left handler.



OnLeftClick(self, x, y, keys = 0, attachment = 0)

The left click handler.



OnMovePre(self, dc, x, y, old_x, old_y, display)

The move ‘pre’ handler.???



OnRightClick(self, x, y, keys = 0, attachment = 0)

The right click handler.