original_docstring: Checks the category and makes sure that questions are in questionList
              Can destory the last window if passed destroymain=True
docstring: Checks the category and makes sure that questions are in questionList
  Can destory the last window if passed destroymain=True
docstring_tokens: Checks the category and makes sure that questions are in questionList Can destory the last window if passed destroymain = True
code: def controller(self, start, destroymain=False):
          '''Checks the category and makes sure that questions are in questionList
              Can destory the last window if passed destroymain=True'''
          global main #has to be global to be used in other classes
  
          if questionList and start in category: #checking that there are questions and the category given is valid
              if destroymain:
                  main.window.destroy()
  
              self.window.destroy()
              main = MainGUI(start)
  
          elif start not in category:
              messagebox.showinfo(message='Please select a category')
code_tokens: def controller ( self , start , destroymain = False ) : global main if questionList and start in category : if destroymain : main . window . destroy ( ) self . window . destroy ( ) main = MainGUI ( start ) elif start not in category : messagebox . showinfo ( message = 'Please select a category' )
short_docstring: Checks the category and makes sure that questions are in questionList
  Can destory the last window if passed destroymain=True
short_docstring_tokens: Checks the category and makes sure that questions are in questionList Can destory the last window if passed destroymain = True
comment: '''Checks the category and makes sure that questions are in questionList
              Can destory the last window if passed destroymain=True'''$SEP$#has to be global to be used in other classes
  $SEP$#checking that there are questions and the category given is valid
  