tag.py

"""Two lines drawn by tags.
   by stephan)
"""
from slut import *

class Atlantis(World):
    def onSetup(self):
        self.name = "Line"

        Lines(self, 'tag1')
        l = Lines(self, 'tag2')
        l.moveBy(0, -50)


class Lines(Tag):
    def onDraw(self):
        line(100, 200, 300, 200)

atlantis = Atlantis()
atlantis.run()
Initiated by Stephan Hechenberger
Thanks to CADRE's 103