original_docstring: Overrides the current question - used in SearchQuestions class
docstring: Overrides the current question - used in SearchQuestions class
docstring_tokens: Overrides the current question - used in SearchQuestions class
code: def override(self, question, event=None):
          '''Overrides the current question - used in SearchQuestions class'''
          self.category = question[0]
          self.answer = question[1]
          self.question = question[2]
          self.questionrow = question
          self.string.set(question[2])
  
          c.execute('SELECT colour FROM subjects WHERE subject = (?)', (question[0],))
          self.colour = c.fetchone()[0]
          self.rowid = question[3]
  
          self.titleLabel['fg'] = self.colour
          self.titleLabel['text'] = self.category
  
          self.questionLabel['fg'] = self.colour
          self.newbutton['bg'] = self.colour
          self.checkbutton['bg'] = self.colour
  
          self.window.title(self.category)
code_tokens: def override ( self , question , event = None ) : self . category = question [ 0 ] self . answer = question [ 1 ] self . question = question [ 2 ] self . questionrow = question self . string . set ( question [ 2 ] ) c . execute ( 'SELECT colour FROM subjects WHERE subject = (?)' , ( question [ 0 ] , ) ) self . colour = c . fetchone ( ) [ 0 ] self . rowid = question [ 3 ] self . titleLabel [ 'fg' ] = self . colour self . titleLabel [ 'text' ] = self . category self . questionLabel [ 'fg' ] = self . colour self . newbutton [ 'bg' ] = self . colour self . checkbutton [ 'bg' ] = self . colour self . window . title ( self . category )
short_docstring: Overrides the current question - used in SearchQuestions class
short_docstring_tokens: Overrides the current question - used in SearchQuestions class
comment: '''Overrides the current question - used in SearchQuestions class'''