Helpviewer/QtHelpDocumentationDialog.py

changeset 535
4b00d7336e19
parent 13
1af94a91f439
child 536
6d8d39753c82
equal deleted inserted replaced
533:bc6063d2ab83 535:4b00d7336e19
108 res = QMessageBox.information(self, 108 res = QMessageBox.information(self,
109 self.trUtf8("Remove Documentation"), 109 self.trUtf8("Remove Documentation"),
110 self.trUtf8("""Some documents currently opened reference the """ 110 self.trUtf8("""Some documents currently opened reference the """
111 """documentation you are attempting to remove. """ 111 """documentation you are attempting to remove. """
112 """Removing the documentation will close those """ 112 """Removing the documentation will close those """
113 """documents."""), 113 """documents. Remove anyway?"""),
114 QMessageBox.StandardButtons(\ 114 QMessageBox.StandardButtons(\
115 QMessageBox.Cancel | \ 115 QMessageBox.Yes | \
116 QMessageBox.Ok)) 116 QMessageBox.No),
117 if res == QMessageBox.Cancel: 117 QMessageBox.No)
118 if res == QMessageBox.No:
118 return 119 return
119 self.__unregisteredDocs.append(ns) 120 self.__unregisteredDocs.append(ns)
120 for id in openedDocs: 121 for id in openedDocs:
121 if openedDocs[id] == ns and id not in self.__tabsToClose: 122 if openedDocs[id] == ns and id not in self.__tabsToClose:
122 self.__tabsToClose.append(id) 123 self.__tabsToClose.append(id)

eric ide

mercurial