added a module for displaying athmos
This commit is contained in:
12
athmos.py
Executable file
12
athmos.py
Executable 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))
|
||||
5
main.py
5
main.py
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user