Exemplo n.º 1
0
 def repaint(self, event: Event):
     # Draw something on the image
     ctx = DrawingContext(self.image)
     ctx.fill('#')
     text = "1234567890"
     for i in range(min(self.image.size.width, self.image.size.height)):
         ctx.fill(text[i % len(text)])
         ctx.clip_by(1, 1, -1, -1)
Exemplo n.º 2
0
 def repaint(self, event: Event):
     # Draw something on the image
     ctx = DrawingContext(self.image)
     ctx.fill('#')
     text = "1234567890"
     for i in range(min(self.image.size.width, self.image.size.height)):
         ctx.fill(text[i % len(text)])
         ctx.clip_by(1, 1, -1, -1)