-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainDisplayClockEngine.py
More file actions
50 lines (30 loc) · 1.06 KB
/
Copy pathmainDisplayClockEngine.py
File metadata and controls
50 lines (30 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from main import *
#from pygame import *
import threading
from time import time
kmhVariableAngle =0
def setScreen(oldscreen):
global screen
screen = oldscreen
def setKmhValue(oldKmhValue):
global kmhVariable
kmhVariable = oldKmhValue
def setRPMValue(oldRpmValue):
global rpmVariable
rpmVariable = oldRpmValue
class displayMainClock(threading.Thread):
def __init__(self):
super(displayMainClock, self).__init__()
threading.Thread.__init__(self)
def run(self):
clock = pygame.time.Clock()
kmhImage = pygame.image.load('resources/kmh.png')
kmhImage = pygame.transform.scale(kmhImage, (400, 400))
rpmmImage = pygame.image.load('resources/rpmm.png')
rpmmImage = pygame.transform.scale(rpmmImage, (400, 400))
kmhAcImage = pygame.image.load('resources/ac.png')
kmhAcImage = pygame.transform.scale(kmhAcImage, (400, 400))
while 1:
screen.blit(kmhImage, (0, 300))
screen.blit(rpmmImage, (870, 300))
#pygame.display.flip()