original_docstring: Edits the option from the checkbutton
docstring: Edits the option from the checkbutton
docstring_tokens: Edits the option from the checkbutton
code: def edit(self, event=None):
          '''Edits the option from the checkbutton'''
          global notifyWhenCorrect
          result = self.checkint.get()
          found = False
  
          if result == 1:
              notifyWhenCorrect = 'True'
          elif result == 0:
              notifyWhenCorrect = 'False'
          else:
              messagebox.showerror(message='Unexpected Error in edit setting - notifyWhenCorrect')
              self.window.destroy()
              return
  
          for option in globalOptions:
              if option[0] == 'notifyWhenCorrect':
                  option[1] = notifyWhenCorrect
                  found = True
          if not found:
              globalOptions.append(['notifyWhenCorrect',notifyWhenCorrect])
  
          c.execute('DELETE FROM options WHERE option = (?)', ('notifyWhenCorrect',))
          c.execute('INSERT INTO options VALUES (?, ?)', ('notifyWhenCorrect',notifyWhenCorrect))
          conn.commit()
  
          messagebox.showinfo(message='You should start to see the effects of this change now :)')
          self.window.destroy()
code_tokens: def edit ( self , event = None ) : global notifyWhenCorrect result = self . checkint . get ( ) found = False if result == 1 : notifyWhenCorrect = 'True' elif result == 0 : notifyWhenCorrect = 'False' else : messagebox . showerror ( message = 'Unexpected Error in edit setting - notifyWhenCorrect' ) self . window . destroy ( ) return for option in globalOptions : if option [ 0 ] == 'notifyWhenCorrect' : option [ 1 ] = notifyWhenCorrect found = True if not found : globalOptions . append ( [ 'notifyWhenCorrect' , notifyWhenCorrect ] ) c . execute ( 'DELETE FROM options WHERE option = (?)' , ( 'notifyWhenCorrect' , ) ) c . execute ( 'INSERT INTO options VALUES (?, ?)' , ( 'notifyWhenCorrect' , notifyWhenCorrect ) ) conn . commit ( ) messagebox . showinfo ( message = 'You should start to see the effects of this change now :)' ) self . window . destroy ( )
short_docstring: Edits the option from the checkbutton
short_docstring_tokens: Edits the option from the checkbutton
comment: '''Edits the option from the checkbutton'''