added a module for displaying athmos

This commit is contained in:
SallarShayegan
2025-04-02 21:27:14 +02:00
parent ba5f1a6ace
commit bda08dab84
2 changed files with 17 additions and 0 deletions

12
athmos.py Executable file
View File

@ -0,0 +1,12 @@
from .fonts import *
from .colors import *
class Athmos:
def __init__(self, screen):
self.screen = screen
def update(self):
name = font_helvetica16.render("kir", False, color_primary_light)
self.screen.blit(name, ((self.screen.get_width() - name.get_width())/2,
20))

View File

@ -5,6 +5,7 @@ from .knobs import Knobs
from .lozenge_button import LozengeButton
from .binary_button import BinaryButton
from .circle_button import *
from .athmos import Athmos
class GuiMain:
@ -65,6 +66,8 @@ class GuiMain:
False
)
self.athmos = Athmos(self)
self.clock = pygame.time.Clock()
self.running = True
@ -107,6 +110,8 @@ class GuiMain:
self.rloop_button.display()
self.rec_button.display()
self.athmos.update()
pygame.draw.polygon(self.screen, "white", [(0, self.screenH/2), (self.screenW*3 / 19, self.screenH), (0, self.screenH)])
# flip() the display to put your work on screen
pygame.display.flip()