UI/UserInterface.py

changeset 266
2987579ab76e
parent 258
9402d145020d
child 270
41505c92ac31
equal deleted inserted replaced
265:5805c2e1415b 266:2987579ab76e
4049 """ 4049 """
4050 Private slot to start the Qt-Assistant 4 executable. 4050 Private slot to start the Qt-Assistant 4 executable.
4051 """ 4051 """
4052 self.__assistant(version = 4) 4052 self.__assistant(version = 4)
4053 4053
4054 def __startWebBrowser(self, home = None): 4054 def __startWebBrowser(self, home = ""):
4055 """ 4055 """
4056 Private slot to start a web browser executable. 4056 Private slot to start the eric5 web browser.
4057 4057
4058 @param home full pathname of a file to display (string) 4058 @param home full pathname of a file to display (string)
4059 """ 4059 """
4060 started = QDesktopServices.openUrl(QUrl(home)) 4060 self.launchHelpViewer(home)
4061 if not started:
4062 QMessageBox.critical(self,
4063 self.trUtf8('Open Browser'),
4064 self.trUtf8('Could not start a web browser'))
4065 4061
4066 def __customViewer(self, home = None): 4062 def __customViewer(self, home = None):
4067 """ 4063 """
4068 Private slot to start a custom viewer. 4064 Private slot to start a custom viewer.
4069 4065

eric ide

mercurial