UI/UserInterface.py

changeset 258
9402d145020d
parent 158
6a561f87bc07
child 266
2987579ab76e
equal deleted inserted replaced
257:e03694226603 258:9402d145020d
4550 """ 4550 """
4551 Private slot to show the Eric documentation. 4551 Private slot to show the Eric documentation.
4552 """ 4552 """
4553 home = Utilities.normjoinpath(getConfig('ericDocDir'), 4553 home = Utilities.normjoinpath(getConfig('ericDocDir'),
4554 "Source", "index.html") 4554 "Source", "index.html")
4555 4555
4556 if not home.startswith("http://") and \ 4556 if not home.startswith("http://") and \
4557 not home.startswith("https://"): 4557 not home.startswith("https://"):
4558 if not os.path.exists(home): 4558 if not os.path.exists(home):
4559 QMessageBox.warning(None, 4559 QMessageBox.warning(None,
4560 self.trUtf8("Documentation Missing"), 4560 self.trUtf8("Documentation Missing"),
4561 self.trUtf8("""<p>The documentation starting point""" 4561 self.trUtf8("""<p>The documentation starting point"""
4562 """ "<b>{0}</b>" could not be found.</p>""")\ 4562 """ "<b>{0}</b>" could not be found.</p>""")\
4563 .format(home)) 4563 .format(home))
4564 return 4564 return
4565 4565
4566 home = "file://" + home 4566 if Utilities.isWindowsPlatform():
4567 home = "file:///" + Utilities.fromNativeSeparators(home)
4568 else:
4569 home = "file://" + home
4567 4570
4568 hvType = Preferences.getHelp("HelpViewerType") 4571 hvType = Preferences.getHelp("HelpViewerType")
4569 if hvType == 1: 4572 if hvType == 1:
4570 self.launchHelpViewer(home) 4573 self.launchHelpViewer(home)
4571 elif hvType == 2: 4574 elif hvType == 2:

eric ide

mercurial