Bad commit?
This commit is contained in:
parent
f1dba7705b
commit
b1cfa8b67d
|
@ -236,12 +236,10 @@ while True:
|
||||||
print(display_num_decimal)
|
print(display_num_decimal)
|
||||||
old_display_num_whole = display_num_whole
|
old_display_num_whole = display_num_whole
|
||||||
old_display_num_decimal = display_num_decimal
|
old_display_num_decimal = display_num_decimal
|
||||||
#pygame.draw.rect(screen, (0, 0, 0), pygame.Rect(12, 97, 576, 126))
|
|
||||||
pygame.draw.rect(screen, black, pygame.Rect(10, 100, width - 20, 110))
|
pygame.draw.rect(screen, black, pygame.Rect(10, 100, width - 20, 110))
|
||||||
pygame.draw.rect(screen, yellow, pygame.Rect(10, 100, width - 20, 110), 2)
|
pygame.draw.rect(screen, yellow, pygame.Rect(10, 100, width - 20, 110), 2)
|
||||||
text = sevenseg_font.render(display_num_whole + "." + display_num_decimal, True, white)
|
text = sevenseg_font.render(display_num_whole + "." + display_num_decimal, True, white)
|
||||||
screen.blit(text, (width - 20 - text.get_width(), 120))
|
screen.blit(text, (width - 20 - text.get_width(), 120))
|
||||||
#pygame.draw.rect(screen, yellow, pygame.Rect(10, 100, 580, 110), 2)
|
|
||||||
for key, b in buttons.items():
|
for key, b in buttons.items():
|
||||||
if b.flashing == True and time.time() >= b.unflash_on:
|
if b.flashing == True and time.time() >= b.unflash_on:
|
||||||
flash_button(b)
|
flash_button(b)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user