if os.name == 'posix': Log.error("No valid theme found!\n"+\ "Make sure theme files are properly cased "+\ "e.g. notes.png works, Notes.png doesn't\n") else: Log.error("No valid theme found!") sys.exit(1); if defaultTheme is None: defaultTheme = themes[0] #myfingershurt #myfingershurt: default theme must be an existing one! Config.define("coffee", "themename", str, defaultTheme, text = _("Theme"), options = dict([(str(themes[n]),themes[n]) for n in range(0, i)]), tipText = _("Sets the overall graphical feel of the game. You can find and download many more at fretsonfire.net")) ##Alarian: End Get unlimited themes by foldername Player.loadControls() class FullScreenSwitcher(KeyListener): """ A keyboard listener that looks for special built-in key combinations, such as the fullscreen toggle (Alt-Enter). """ def __init__(self, engine): self.engine = engine self.altStatus = False def keyPressed(self, key, unicode): if key == pygame.K_LALT: self.altStatus = True