Пример #1
0
 def __init__(self, **kwargs):
     ScatterLayout.__init__(self, **kwargs)
     self.FACTOR_LINE = 1.2
     self.FACTOR_TRIANGLE = .1
     with self.canvas:
         Color(0, 0, 0)
         self.rules = Line(points=[-5,-5, self.width*self.FACTOR_LINE-5,-5, -5,-5, -5, self.height*self.FACTOR_LINE-5])
     self.bind(size=self.draw_rules)
Пример #2
0
 def __init__(self, **kwargs):
     ScatterLayout.__init__(self, **kwargs)
     self.FACTOR_LINE = 1.2
     self.FACTOR_TRIANGLE = .1
     with self.canvas:
         Color(0, 0, 0)
         self.rules = Line(points=[
             -5, -5, self.width * self.FACTOR_LINE -
             5, -5, -5, -5, -5, self.height * self.FACTOR_LINE - 5
         ])
     self.bind(size=self.draw_rules)
 def __init__(self, **kwargs):
     ScatterLayout.__init__(self, **kwargs)
     BetterLogger.__init__(self)