Helpviewer/HelpBrowserWV.py

changeset 535
4b00d7336e19
parent 501
5c615a85241a
child 537
72b32daeb8d6
equal deleted inserted replaced
533:bc6063d2ab83 535:4b00d7336e19
479 479
480 if not QFileInfo(name.toLocalFile()).exists(): 480 if not QFileInfo(name.toLocalFile()).exists():
481 QMessageBox.critical(None, 481 QMessageBox.critical(None,
482 self.trUtf8("Web Browser"), 482 self.trUtf8("Web Browser"),
483 self.trUtf8("""<p>The file <b>{0}</b> does not exist.</p>""")\ 483 self.trUtf8("""<p>The file <b>{0}</b> does not exist.</p>""")\
484 .format(name.toLocalFile()), 484 .format(name.toLocalFile()))
485 QMessageBox.StandardButtons(\
486 QMessageBox.Ok))
487 return 485 return
488 486
489 if name.toLocalFile().endswith(".pdf") or \ 487 if name.toLocalFile().endswith(".pdf") or \
490 name.toLocalFile().endswith(".PDF") or \ 488 name.toLocalFile().endswith(".PDF") or \
491 name.toLocalFile().endswith(".chm") or \ 489 name.toLocalFile().endswith(".chm") or \

eric ide

mercurial