Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/JAMClock.py
diff options
context:
space:
mode:
Diffstat (limited to 'JAMClock.py')
-rw-r--r--JAMClock.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/JAMClock.py b/JAMClock.py
index 7719586..444718e 100644
--- a/JAMClock.py
+++ b/JAMClock.py
@@ -1,13 +1,14 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# BiblioJAM (VersiĆ³n 2.0) - 21/05/2011 - CeibalJAM! - Uruguay
-# JAMClock.py por: Flavio Danesse fdanesse@gmail.com
-# https://sites.google.com/site/flaviodanesse/
-# https://sites.google.com/site/sugaractivities/
-# http://codigosdeejemplo.blogspot.com/
+import pygame
+import gc
+import sys
+import gobject
+import time
+import datetime
+import os
-import pygame, gc, sys, gobject, time, datetime, os
from pygame.locals import *
gc.enable()
pygame.font.init()
@@ -174,7 +175,7 @@ class Digital(JAMButton):
''' Etiqueta con la hora en forma digital.'''
def __init__(self, clock):
JAMButton.__init__(self, "", None)
- self.clock= clock
+ self.clock= clock
tipo= self.clock.datos_numeros["tipo"]
tamanio= self.clock.datos_numeros["tamanio"]/3+self.clock.datos_numeros["tamanio"]
color= self.clock.datos_numeros["color"]
@@ -202,7 +203,7 @@ class Timer(pygame.sprite.Sprite):
fecha= str(datetime.date.today())
if hora != self.hora:
self.clock.label.set_text(texto= hora)
- h,m,s= hora.split(":")
+ h,m,s= hora.split(":")
hh, mm, ss= self.hora.split(":")
if s != ss:
@@ -223,7 +224,7 @@ class Aguja(pygame.sprite.Sprite):
superficie= VG.get_Rectangulo(self.clock.datos_base["color"], self.clock.datos_base["tamanio"])
superficie.set_colorkey(self.clock.datos_base["color"])
- x,y,w,h= superficie.get_rect()
+ x,y,w,h= superficie.get_rect()
punto= (w/2,h/2)
pygame.draw.line(superficie, color, punto, (w/2,y+retiro), grosor)
self.imagen_original= superficie