def accept(self, evt):
<EOL>frozen = getattr(sys, '<STR_LIT>', False)<EOL>if frozen:<EOL><INDENT>app_file = sys.executable<EOL><DEDENT>else:<EOL><INDENT>app_file = PathStr(__main__.__file__).abspath()<EOL><DEDENT>if self.cb_startmenu.isChecked():<EOL><INDENT>StartMenuEntry(self.name, app_file, icon=self.icon,<EOL>console=False).create()<EOL><DEDENT>if self.cb_mime.isChecked():<EOL><INDENT>if not isAdmin():<EOL><INDENT>try:<EOL><INDENT>if frozen:<EOL><INDENT>cmd = "<STR_LIT>" % (<EOL>__name__, '<STR_LIT>', self.ftype, self.name)<EOL>runAsAdmin((sys.executable, '<STR_LIT>', cmd))<EOL><DEDENT>else:<EOL><INDENT>runAsAdmin((sys.executable, __file__,<EOL>app_file, self.ftype, self.name))<EOL><DEDENT><DEDENT>except:<EOL><INDENT>print('<STR_LIT>')<EOL><DEDENT><DEDENT>else:<EOL><INDENT>embeddIntoOS(app_file, self.ftype, self.name)<EOL><DEDENT><DEDENT>QtWidgets.QDialog.accept(self)<EOL>
write setting to the preferences