UI/UserInterface.py

branch
5_0_x
changeset 356
4deb1aa438db
parent 341
a727e6ca7698
child 769
a7cac3e1f1e3
equal deleted inserted replaced
352:a14693e59198 356:4deb1aa438db
4436 """ "<b>{0}</b>" could not be found.</p>""")\ 4436 """ "<b>{0}</b>" could not be found.</p>""")\
4437 .format(home)) 4437 .format(home))
4438 return 4438 return
4439 4439
4440 if not home.endswith(".chm"): 4440 if not home.endswith(".chm"):
4441 home = "file://" + home 4441 if Utilities.isWindowsPlatform():
4442 home = "file:///" + Utilities.fromNativeSeparators(home)
4443 else:
4444 home = "file://" + home
4442 else: 4445 else:
4443 home = pythonDocDir 4446 home = pythonDocDir
4444 4447
4445 if home.endswith(".chm"): 4448 if home.endswith(".chm"):
4446 self.__chmViewer(home) 4449 self.__chmViewer(home)
4484 self.trUtf8("""<p>The documentation starting point""" 4487 self.trUtf8("""<p>The documentation starting point"""
4485 """ "<b>{0}</b>" could not be found.</p>""")\ 4488 """ "<b>{0}</b>" could not be found.</p>""")\
4486 .format(home)) 4489 .format(home))
4487 return 4490 return
4488 4491
4489 home = "file://" + home 4492 if Utilities.isWindowsPlatform():
4493 home = "file:///" + Utilities.fromNativeSeparators(home)
4494 else:
4495 home = "file://" + home
4490 4496
4491 hvType = Preferences.getHelp("HelpViewerType") 4497 hvType = Preferences.getHelp("HelpViewerType")
4492 if hvType == 1: 4498 if hvType == 1:
4493 self.launchHelpViewer(home) 4499 self.launchHelpViewer(home)
4494 elif hvType == 2: 4500 elif hvType == 2:
4538 self.trUtf8("""<p>The documentation starting point""" 4544 self.trUtf8("""<p>The documentation starting point"""
4539 """ "<b>{0}</b>" could not be found.</p>""")\ 4545 """ "<b>{0}</b>" could not be found.</p>""")\
4540 .format(home)) 4546 .format(home))
4541 return 4547 return
4542 4548
4543 home = "file://" + home 4549 if Utilities.isWindowsPlatform():
4550 home = "file:///" + Utilities.fromNativeSeparators(home)
4551 else:
4552 home = "file://" + home
4544 else: 4553 else:
4545 home = pyqt4DocDir 4554 home = pyqt4DocDir
4546 4555
4547 hvType = Preferences.getHelp("HelpViewerType") 4556 hvType = Preferences.getHelp("HelpViewerType")
4548 if hvType == 1: 4557 if hvType == 1:
4615 self.trUtf8("""<p>The documentation starting point""" 4624 self.trUtf8("""<p>The documentation starting point"""
4616 """ "<b>{0}</b>" could not be found.</p>""")\ 4625 """ "<b>{0}</b>" could not be found.</p>""")\
4617 .format(home)) 4626 .format(home))
4618 return 4627 return
4619 4628
4620 home = "file://" + home 4629 if Utilities.isWindowsPlatform():
4630 home = "file:///" + Utilities.fromNativeSeparators(home)
4631 else:
4632 home = "file://" + home
4621 else: 4633 else:
4622 home = pysideDocDir 4634 home = pysideDocDir
4623 4635
4624 hvType = Preferences.getHelp("HelpViewerType") 4636 hvType = Preferences.getHelp("HelpViewerType")
4625 if hvType == 1: 4637 if hvType == 1:

eric ide

mercurial