def build(self): global game #FIXME: THIS IS MOST CERTAINLY NOT THE WAY TO DO IT, BUT HOW ELSE ?!?!? game = Game() self.config = MainConfig() Config.set('graphics', 'width', self.config.windowWidth) #this has to be done before calling super() Config.set('graphics', 'height', self.config.windowHeight) self.screen = Screen(game=game) game.screen = self.screen return self.screen