Menu

#5 Add more efficient sound loading

open
nobody
2017-02-06
2017-02-06
Anonymous
No

Originally created by: TreeStain

Currently the beep sound loading is done in the call to beep in the window.py class.

    def beep(self):
        # Load
        self.beep_sound = pygame.mixer.Sound(beep_sound)
        # Play
        self.beep_sound.play()

However it would be better if this could be done in the init function. The config would need to be taken from the console class and fed into the window class init.

Discussion


Log in to post a comment.