parameters: (self)
docstring: .
docstring_summary: .
docstring_tokens: .
function: def update_file(self):
          """
          .
          """
  
          my_text = self.textedit.toPlainText()
          with open(self.filename, 'w+') as f:
              f.write(my_text)
          QtWidgets.QMessageBox.information(
              self,
              "注意",
              "配置的修改需要重启后才会生效！",
              QtWidgets.QMessageBox.Ok
          )
          self.accept()
function_tokens: def update_file ( self ) : my_text = self . textedit . toPlainText ( ) with open ( self . filename , 'w+' ) as f : f . write ( my_text ) QtWidgets . QMessageBox . information ( self , "注意", "配置的修改需要重启后才会生效！", QtWidgets . QMessageBox . Ok ) self . accept ( )