uv build local project dev
This commit is contained in:
@@ -60,11 +60,13 @@ class AgilitySphereGraphicsItem(SphereGraphicsItem):
|
||||
def __init__(self, x_pos: int, y_pos: int) -> None:
|
||||
super().__init__(x_pos, y_pos, Qt.GlobalColor.darkYellow)
|
||||
|
||||
|
||||
class EmptySphereGraphicsItem(SphereGraphicsItem):
|
||||
def __init__(self, x_pos: int, y_pos: int) -> None:
|
||||
self.SPHERE_WIDTH = 20
|
||||
super().__init__(x_pos, y_pos, Qt.GlobalColor.black)
|
||||
|
||||
|
||||
@staticmethod
|
||||
def random_sphere_factory(x_pos: int, y_pos: int) -> SphereGraphicsItem:
|
||||
rand = random.random()
|
||||
@@ -78,6 +80,7 @@ def random_sphere_factory(x_pos: int, y_pos: int) -> SphereGraphicsItem:
|
||||
obj = EmptySphereGraphicsItem(x_pos, y_pos)
|
||||
return obj
|
||||
|
||||
|
||||
class ArcGraphicsItem(QGraphicsItem):
|
||||
"""Circle arc."""
|
||||
|
||||
@@ -111,7 +114,7 @@ class ArcGraphicsItem(QGraphicsItem):
|
||||
# must a more elegant way but it works
|
||||
if angle_end == 0:
|
||||
angle_end = 360
|
||||
self.draw_angle_end = int(abs(angle_end-angle_start) * 16)
|
||||
self.draw_angle_end = int(abs(angle_end - angle_start) * 16)
|
||||
logging.debug(
|
||||
"arc from %s:%s of %s from %s° to %s°",
|
||||
self.x_pos,
|
||||
|
||||
Reference in New Issue
Block a user