def update_ticks(self, *args):
    with self.canvas:
        Color(*self.tick_color)
        for i in range(1, (self.nb_radial_tick + 1)):
            Line(circle=(self.center_x, self.center_y, (((self.ratio * i) * (self.height / self.nb_radial_tick)) / 2)))
        for i in range(1, (self.nb_linear_tick + 1)):
            tick_len = ((self.dim * self.ratio) * 0.5)
            Line(points=[(self.center_x - (tick_len * math.cos((i * (3.14 / self.nb_linear_tick))))), (self.center_y - (tick_len * math.sin((i * (3.14 / self.nb_linear_tick))))), (self.center_x + (tick_len * math.cos((i * (3.14 / self.nb_linear_tick))))), (self.center_y + (tick_len * math.sin((i * (3.14 / self.nb_linear_tick)))))], width=1)
def update_ticks(self, *args):
    with self.canvas:
        Color(*self.tick_color)
        for i in range(1, (self.nb_radial_tick + 1)):
            Line(circle=(self.center_x, self.center_y, (((self.ratio * i) * (self.height / self.nb_radial_tick)) / 2)))
        for i in range(1, (self.nb_linear_tick + 1)):
            tick_len = ((self.dim * self.ratio) * 0.5)
            Line(points=[(self.center_x - (tick_len * math.cos((i * (3.14 / self.nb_linear_tick))))), (self.center_y - (tick_len * math.sin((i * (3.14 / self.nb_linear_tick))))), (self.center_x + (tick_len * math.cos((i * (3.14 / self.nb_linear_tick))))), (self.center_y + (tick_len * math.sin((i * (3.14 / self.nb_linear_tick)))))], width=1)