예제 #1
0
 def unregister_distribution(self):
     """Unregister distribution"""
     answer = QMessageBox.warning(self, "Unregister distribution",
         "This will remove file extensions associations, icons and "
         "Windows explorer's context menu entries ('Edit with IDLE', ...) "
         "with selected Python distribution in Windows registry. "
         "<br>Shortcuts for all WinPython launchers will be removed "
         "from <i>WinPython</i> Start menu group."
         "<br>If <i>pywin32</i> is installed (it should be on any "
         "WinPython distribution), the Python ActiveX Scripting client "
         "will also be unregistered."
         "<br><br>Do you want to continue?",
         QMessageBox.Yes | QMessageBox.No)
     if answer == QMessageBox.Yes:
         associate.unregister(self.distribution.target)
예제 #2
0
 def unregister_distribution(self):
     """Unregister distribution"""
     answer = QMessageBox.warning(self, "Unregister distribution",
         "This will remove file extensions associations, icons and "
         "Windows explorer's context menu entries ('Edit with IDLE', ...) "
         "with selected Python distribution in Windows registry. "
         "<br>Shortcuts for all WinPython launchers will be removed "
         "from <i>WinPython</i> Start menu group."
         "<br>If <i>pywin32</i> is installed (it should be on any "
         "WinPython distribution), the Python ActiveX Scripting client "
         "will also be unregistered."
         "<br><br>Do you want to continue?",
         QMessageBox.Yes | QMessageBox.No)
     if answer == QMessageBox.Yes:
         associate.unregister(self.distribution.target)