[chronojump] minor changes
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] minor changes
- Date: Wed, 21 Nov 2012 16:53:59 +0000 (UTC)
commit 2c1edf4f2fd6a475641229d29767674b0ff959ef
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Nov 21 17:53:40 2012 +0100
minor changes
encoder/pyserial_pyper.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/encoder/pyserial_pyper.py b/encoder/pyserial_pyper.py
index c7c3ecd..8f06906 100644
--- a/encoder/pyserial_pyper.py
+++ b/encoder/pyserial_pyper.py
@@ -244,7 +244,7 @@ def calculate_all_in_r(temp, top_values, bottom_values, direction_now, smoothing
playsound(soundFile)
#screen.fill((0,0,0)) #make redraw background black
- printTitle("running")
+ printHeader("running")
rangeList.append(height)
meanPowerList.append(meanPower)
@@ -348,7 +348,7 @@ def update_graph(paramName, paramList, lowCondition, highCondition,
screen.blit(s,(horizPosToCopy,vertPosToCopy)) #render the surface into the rectangle
pygame.display.flip() #update the screen
-def printTitle(option):
+def printHeader(option):
s=pygame.Surface((792,32))
s.fill(ColorBackground) #color the surface
@@ -429,7 +429,7 @@ if __name__ == '__main__':
#print title
title = title.replace('_',' ')
title = title.replace('-',' ')
- printTitle("start")
+ printHeader("start")
for i in xrange(record_time):
#if ser.readable(): #commented because don't work on linux
@@ -546,7 +546,7 @@ if __name__ == '__main__':
print "\nDone! Please, close this window."
- printTitle("end")
+ printHeader("end")
while 1:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]