Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/talogo.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-27 17:18:23 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-27 17:18:23 (GMT)
commit725a482f0d7f5f86e4ecdfe83645571aa7d27e09 (patch)
tree07cdb0d73ec3f64a4c9bd4134b1c19d805384dd9 /talogo.py
parent73fb4e9ab0d55a0c6c3bf48824dacf3f9272bf35 (diff)
added scale factor to show text
Diffstat (limited to 'talogo.py')
-rw-r--r--talogo.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/talogo.py b/talogo.py
index 1863d17..b096657 100644
--- a/talogo.py
+++ b/talogo.py
@@ -1028,13 +1028,15 @@ class LogoCode:
else:
if center:
y -= self.tw.textsize
- self.tw.canvas.draw_text(string,x,y,self.tw.textsize,
- self.tw.canvas.width-x)
+ self.tw.canvas.draw_text(string, x, y,
+ int(self.tw.textsize*self.scale/100),
+ self.tw.canvas.width-x)
elif type(string) == float or type(string) == int:
string = round_int(string)
if center:
y -= self.tw.textsize
- self.tw.canvas.draw_text(string, x, y, self.tw.textsize,
+ self.tw.canvas.draw_text(string, x, y,
+ int(self.tw.textsize*self.scale/100),
self.tw.canvas.width-x)
def play_sound(self, audio):