Helpviewer/HelpWindow.py

changeset 535
4b00d7336e19
parent 498
f3e76121fd10
child 537
72b32daeb8d6
equal deleted inserted replaced
533:bc6063d2ab83 535:4b00d7336e19
2051 """ Until you close the window, you can still click""" 2051 """ Until you close the window, you can still click"""
2052 """ the Back and Forward buttons to return to the""" 2052 """ the Back and Forward buttons to return to the"""
2053 """ web pages you have opened.</p>""") 2053 """ web pages you have opened.</p>""")
2054 res = QMessageBox.question(self, "", txt, 2054 res = QMessageBox.question(self, "", txt,
2055 QMessageBox.StandardButtons(\ 2055 QMessageBox.StandardButtons(\
2056 QMessageBox.Cancel | \ 2056 QMessageBox.Yes | \
2057 QMessageBox.Ok), 2057 QMessageBox.No),
2058 QMessageBox.Ok) 2058 QMessageBox.No)
2059 if res == QMessageBox.Ok: 2059 if res == QMessageBox.Yes:
2060 settings.setAttribute(QWebSettings.PrivateBrowsingEnabled, True) 2060 settings.setAttribute(QWebSettings.PrivateBrowsingEnabled, True)
2061 self.pathCombo.setInsertPolicy(QComboBox.NoInsert) 2061 self.pathCombo.setInsertPolicy(QComboBox.NoInsert)
2062 self.privacyLabel.setPixmap( 2062 self.privacyLabel.setPixmap(
2063 UI.PixmapCache.getPixmap("privateBrowsing.png")) 2063 UI.PixmapCache.getPixmap("privateBrowsing.png"))
2064 self.__setIconDatabasePath(False) 2064 self.__setIconDatabasePath(False)

eric ide

mercurial