aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortassaron2022-05-07 20:27:26 -0400
committertassaron2022-05-07 20:27:26 -0400
commit116baf124a5f8de87f7852263b043b23d6fca1cc (patch)
treed6117e17defba343bc41b4065ea607eb8906862c /src
parent88f4e2298c4b465c40d9de12b2df6f25d45fc322 (diff)
Fix drawing of "peace" shape. Rename a shape to pie
Diffstat (limited to 'src')
-rw-r--r--src/components/life.py13
-rw-r--r--src/components/life.ui2
2 files changed, 6 insertions, 9 deletions
diff --git a/src/components/life.py b/src/components/life.py
index ad6d744..d0bb708 100644
--- a/src/components/life.py
+++ b/src/components/life.py
@@ -202,8 +202,8 @@ class Component(Component):
elif shape == 'lilypad':
drawer.pieslice(smallerShape, 290, 250, fill=self.color)
- # Pac-Man
- elif shape == 'pac-man':
+ # Pie
+ elif shape == 'pie':
drawer.pieslice(outlineShape, 35, 320, fill=self.color)
hX, hY = scale(50, self.pxWidth, self.pxHeight, int) # halfline
@@ -297,12 +297,9 @@ class Component(Component):
def slantLine(difference):
return (
- (drawPtX + difference),
- (drawPtY + self.pxHeight - qY)
- ),
- (
- (drawPtX + hX),
- (drawPtY + hY)
+ (drawPtX + difference), (drawPtY + self.pxHeight - qY)
+ ), (
+ (drawPtX + hX), (drawPtY + hY)
)
drawer.line(
diff --git a/src/components/life.ui b/src/components/life.ui
index 892a9e3..3d6ad5a 100644
--- a/src/components/life.ui
+++ b/src/components/life.ui
@@ -240,7 +240,7 @@
</item>
<item>
<property name="text">
- <string>Pac-Man</string>
+ <string>Pie</string>
</property>
</item>
<item>