original_docstring: Saves the mainguiSize option in the optionFile
docstring: Saves the mainguiSize option in the optionFile
docstring_tokens: Saves the mainguiSize option in the optionFile
code: def edit(self, event=None, default=False):
          '''Saves the mainguiSize option in the optionFile'''
          found = False
          optionlist = GetOptions()
  
          if default:
              chosen = '700x350'
          else:
              chosen = self.dropdown.get()
  
          #add to list
          for option in optionlist:
              if option[0] == 'mainguiSize':
                  option[1] = chosen
                  found = True
          if not found:
              optionlist.append(['mainguiSize',self.dropdown.get()])
  
          #write to file
          c.execute('DELETE FROM options')
          c.executemany('INSERT INTO options VALUES (?, ?)', optionlist)
          conn.commit()
  
          messagebox.showinfo(message='Please restart the app to see the changes take effect :)')
          self.window.destroy()
code_tokens: def edit ( self , event = None , default = False ) : found = False optionlist = GetOptions ( ) if default : chosen = '700x350' else : chosen = self . dropdown . get ( ) for option in optionlist : if option [ 0 ] == 'mainguiSize' : option [ 1 ] = chosen found = True if not found : optionlist . append ( [ 'mainguiSize' , self . dropdown . get ( ) ] ) c . execute ( 'DELETE FROM options' ) c . executemany ( 'INSERT INTO options VALUES (?, ?)' , optionlist ) conn . commit ( ) messagebox . showinfo ( message = 'Please restart the app to see the changes take effect :)' ) self . window . destroy ( )
short_docstring: Saves the mainguiSize option in the optionFile
short_docstring_tokens: Saves the mainguiSize option in the optionFile
comment: '''Saves the mainguiSize option in the optionFile'''$SEP$#add to list
  $SEP$#write to file
  