

def __init__(self, fona):
    self.fona = fona
    self.headset = False
    self.get_audio_mode()
    self.RED = (255, 0, 0)
    self.GREEN = (0, 255, 0)
    self.WHITE = (255, 255, 255)
    self.menu = pygame.image.load('/home/pi/tyos/apps/settings/menu.png')
    self.menu_rect = self.menu.get_rect()
    self.font = pygame.font.Font('/home/pi/tyos/fonts/arial.ttf', 32)
    self.off = self.font.render('OFF', True, self.RED, self.WHITE)
    self.fona_power = self.font.render('ON', True, self.GREEN, self.WHITE)
    self.fona_power_rect = self.off.get_rect()
    self.fona_power_rect.centerx = 280
    self.fona_power_rect.centery = 223
    self.on = self.font.render('ON', True, fona.GREEN, self.WHITE)
    self.rect = self.off.get_rect()
    self.rect.centerx = 280
    self.rect.y = 158
    self.exit = False
    self.blit_one_surface = {
        'surface': [],
        'rects': [],
    }
    self.blit = {
        'surfaces': [self.menu, self.fona_power, self.off],
        'rects': [self.menu_rect, self.fona_power_rect, self.rect],
    }
    if self.headset:
        self.blit['surfaces'][2] = self.on
    else:
        self.blit['surfaces'][2] = self.off
    self.next_app = None

dataset/ETHPy150Open spadgenske/TYOS/apps/settings/settings.py Run.__init__/VarMisuse@194/253 `self`->`fona`