Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py

changeset 3008
7848489bcb92
parent 2771
281c9b30dd91
child 3020
542e97d4ecb3
child 3057
10516539f238
--- a/Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py	Fri Oct 11 19:51:20 2013 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py	Sat Oct 12 15:01:28 2013 +0200
@@ -45,12 +45,14 @@
         
         self.__startAct = QAction(
             UI.PixmapCache.getIcon(
-                os.path.join("VcsPlugins", "vcsMercurial", "icons", "startServer.png")),
+                os.path.join("VcsPlugins", "vcsMercurial", "icons",
+                             "startServer.png")),
             self.trUtf8("Start Server"), self)
         self.__startAct.triggered[()].connect(self.__startServer)
         self.__stopAct = QAction(
             UI.PixmapCache.getIcon(
-                os.path.join("VcsPlugins", "vcsMercurial", "icons", "stopServer.png")),
+                os.path.join("VcsPlugins", "vcsMercurial", "icons",
+                             "stopServer.png")),
             self.trUtf8("Stop Server"), self)
         self.__stopAct.triggered[()].connect(self.__stopServer)
         self.__browserAct = QAction(
@@ -62,7 +64,8 @@
         self.__portSpin.setMinimum(2048)
         self.__portSpin.setMaximum(65535)
         self.__portSpin.setToolTip(self.trUtf8("Enter the server port"))
-        self.__portSpin.setValue(self.vcs.getPlugin().getPreferences("ServerPort"))
+        self.__portSpin.setValue(
+            self.vcs.getPlugin().getPreferences("ServerPort"))
         
         self.__styleCombo = QComboBox(self)
         self.__styleCombo.addItems(self.__styles)
@@ -101,7 +104,8 @@
         
         self.cNormalFormat = self.__log.currentCharFormat()
         self.cErrorFormat = self.__log.currentCharFormat()
-        self.cErrorFormat.setForeground(QBrush(Preferences.getUI("LogStdErrColour")))
+        self.cErrorFormat.setForeground(
+            QBrush(Preferences.getUI("LogStdErrColour")))
     
     def __startServer(self):
         """
@@ -160,7 +164,8 @@
         Private slot to start a browser for the served repository.
         """
         ui = e5App().getObject("UserInterface")
-        ui.launchHelpViewer("http://localhost:{0}".format(self.__portSpin.value()))
+        ui.launchHelpViewer(
+            "http://localhost:{0}".format(self.__portSpin.value()))
     
     def closeEvent(self, e):
         """

eric ide

mercurial