Helpviewer/Passwords/PasswordManager.py

changeset 553
5af61623ae3c
parent 537
72b32daeb8d6
child 791
9ec2ac20e54e
equal deleted inserted replaced
551:e1074b63ff08 553:5af61623ae3c
8 """ 8 """
9 9
10 import os 10 import os
11 11
12 from PyQt4.QtCore import * 12 from PyQt4.QtCore import *
13 from PyQt4.QtGui import QMessageBox
14 from PyQt4.QtNetwork import QNetworkRequest 13 from PyQt4.QtNetwork import QNetworkRequest
15 from PyQt4.QtWebKit import * 14 from PyQt4.QtWebKit import *
16 15
17 from E5Gui import E5MessageBox 16 from E5Gui import E5MessageBox
18 17
372 return 371 return
373 372
374 # prompt, if the form has never be seen 373 # prompt, if the form has never be seen
375 key = self.__createKey(url, "") 374 key = self.__createKey(url, "")
376 if key not in self.__loginForms: 375 if key not in self.__loginForms:
377 mb = QMessageBox() 376 mb = E5MessageBox.E5MessageBox(E5MessageBox.Question,
378 mb.setText(self.trUtf8( 377 self.trUtf8("Save password"),
379 """<b>Would you like to save this password?</b><br/>""" 378 self.trUtf8(
380 """To review passwords you have saved and remove them, """ 379 """<b>Would you like to save this password?</b><br/>"""
381 """use the password management dialog of the Settings menu.""" 380 """To review passwords you have saved and remove them, """
382 )) 381 """use the password management dialog of the Settings menu."""),
382 modal = True)
383 neverButton = mb.addButton( 383 neverButton = mb.addButton(
384 self.trUtf8("Never for this site"), QMessageBox.DestructiveRole) 384 self.trUtf8("Never for this site"), E5MessageBox.DestructiveRole)
385 noButton = mb.addButton(self.trUtf8("Not now"), QMessageBox.RejectRole) 385 noButton = mb.addButton(self.trUtf8("Not now"), E5MessageBox.RejectRole)
386 mb.addButton(QMessageBox.Yes) 386 mb.addButton(E5MessageBox.Yes)
387 mb.exec_() 387 mb.exec_()
388 if mb.clickedButton() == neverButton: 388 if mb.clickedButton() == neverButton:
389 self.__never.append(url.toString()) 389 self.__never.append(url.toString())
390 return 390 return
391 elif mb.clickedButton() == noButton: 391 elif mb.clickedButton() == noButton:

eric ide

mercurial