Ejemplo n.º 1
0
    def __init__(self, graph, name):
        GraphicsObject.__init__(self, height=15)
        self.graph = graph
        self.name = name

        self.radius = 15
        self.pointers_in = set()
        self.drag_starts = {}

        self.vx = self.vy = 0

        self.reachable = 0

        self.text_obj = Text(None, '')
        self.set_size()
Ejemplo n.º 2
0
 def __init__(self, graph, a, b):
     GraphicsObject.__init__(self)
     self.graph = graph
     self.a = a
     self.b = b