Ejemplo n.º 1
0
 def refresh_board(self):
     self.board.clear_widgets()
     pre_board = self.get_synced_board()
     wh = min((330 * Window.width / 520), (330 * Window.height / 600))
     for i in range(0, 100):
         label = Label(
             color=(0, 0, 0, 1), size_hint=(None, None),
             size=(wh / 11, wh / 11))
         label.curve = self.curve
         color = pre_board.get(str(99 - i), self.labels)
         set_color(label, color)
         if color != self.labels:
             label.filled = True
         self.board.add_widget(label)