26 lines
774 B
Python
Executable File
26 lines
774 B
Python
Executable File
from .fonts import *
|
|
from .colors import *
|
|
from .item_selection import ItemSelection
|
|
import pygame
|
|
|
|
class Athmos(ItemSelection):
|
|
|
|
def __init__(self, screen):
|
|
self.screen = screen
|
|
self.show_list = True
|
|
self.max_name_width = 350
|
|
super().__init__(self.max_name_width)
|
|
self.current_duration = 0
|
|
self.time_started = 0
|
|
|
|
def set_filenames(self,filenames):
|
|
super().set_items(filenames)
|
|
|
|
def get_name_by_index(self, index):
|
|
return self.items[index]
|
|
|
|
def update(self):
|
|
if self.show_list:
|
|
super().update()
|
|
self.screen.blit(self.surface, ((self.screen.get_width()-self.max_name_width)/2,
|
|
(self.screen.get_height() - self.surface.get_height())/2)) |