src/eric7/UI/UserInterface.py

branch
eric7
changeset 10069
435cc5875135
parent 9971
773ad1f1ed22
child 10079
0222a480e93d
child 10124
834c76d6ab4d
equal deleted inserted replaced
10068:7febcdccb2a1 10069:435cc5875135
775 from .PythonDisViewer import PythonDisViewer 775 from .PythonDisViewer import PythonDisViewer
776 776
777 # Create the view manager depending on the configuration setting 777 # Create the view manager depending on the configuration setting
778 logging.debug("Creating Viewmanager...") 778 logging.debug("Creating Viewmanager...")
779 self.viewmanager = ViewManager.factory( 779 self.viewmanager = ViewManager.factory(
780 self, self, self.__debugServer, self.pluginManager 780 self, self.__debugServer, self.pluginManager
781 ) 781 )
782 782
783 # Create previewer 783 # Create previewer
784 logging.debug("Creating Previewer...") 784 logging.debug("Creating Previewer...")
785 self.__previewer = Previewer(self.viewmanager) 785 self.__previewer = Previewer(self.viewmanager)
6582 while toolProc.canReadLine(): 6582 while toolProc.canReadLine():
6583 error = str(toolProc.readLine(), ioEncoding, "replace") 6583 error = str(toolProc.readLine(), ioEncoding, "replace")
6584 s = "{0} - {1}".format(program, error) 6584 s = "{0} - {1}".format(program, error)
6585 self.appendToStderr(s) 6585 self.appendToStderr(s)
6586 6586
6587 @pyqtSlot(int, QProcess.ExitStatus)
6587 def __toolFinished(self, exitCode, exitStatus): 6588 def __toolFinished(self, exitCode, exitStatus):
6588 """ 6589 """
6589 Private slot to handle the finished signal of a tool process. 6590 Private slot to handle the finished signal of a tool process.
6590 6591
6591 @param exitCode exit code of the process (integer) 6592 @param exitCode exit code of the process (integer)
6931 @param url URL to be shown 6932 @param url URL to be shown
6932 @type QUrl 6933 @type QUrl
6933 """ 6934 """
6934 self.launchHelpViewer(url) 6935 self.launchHelpViewer(url)
6935 6936
6936 def launchHelpViewer(self, home, searchWord=None, useSingle=False): 6937 def launchHelpViewer(self, home, searchWord=None):
6937 """ 6938 """
6938 Public slot to start the help viewer/web browser. 6939 Public slot to start the help viewer/web browser.
6939 6940
6940 @param home filename of file to be shown or URL to be opened 6941 @param home filename of file to be shown or URL to be opened
6941 @type str or QUrl 6942 @type str or QUrl
6942 @param searchWord word to search for 6943 @param searchWord word to search for
6943 @type str 6944 @type str
6944 @param useSingle flag indicating to use a single browser window
6945 @type bool
6946 """ 6945 """
6947 if isinstance(home, QUrl): 6946 if isinstance(home, QUrl):
6948 home = home.toString(QUrl.UrlFormattingOption.None_) 6947 home = home.toString(QUrl.UrlFormattingOption.None_)
6949 6948
6950 if len(home) > 0: 6949 if len(home) > 0:

eric ide

mercurial