screens/level_selection_screen.py
def draw_level_buttons(self):
        """ Draw all the level buttons onto the screen """
        if self.level_list is []:
            print('level list is empty')
            return
        else:
            # noinspection PyBroadException
            try:
                for button in self.level_list:
                    button.draw()
            except Exception:
                print('error: could not open levels')
 Draw all the level buttons onto the screen 
Draw all the level buttons onto the screen
Draw all the level buttons onto the screen
def draw_level_buttons(self):
        if self.level_list is []:
            print('level list is empty')
            return
        else:
            try:
                for button in self.level_list:
                    button.draw()
            except Exception:
                print('error: could not open levels')
def draw_level_buttons ( self ) : if self . level_list is [ ] : print ( 'level list is empty' ) return else : try : for button in self . level_list : button . draw ( ) except Exception : print ( 'error: could not open levels' )
Draw all the level buttons onto the screen
Draw all the level buttons onto the screen
""" Draw all the level buttons onto the screen """ # noinspection PyBroadException
self