Preferences/ConfigurationPages/ViewmanagerPage.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3010
befeff46ec0f
child 3058
0a02c433f52d
--- a/Preferences/ConfigurationPages/ViewmanagerPage.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Preferences/ConfigurationPages/ViewmanagerPage.py	Fri Oct 18 23:00:41 2013 +0200
@@ -33,19 +33,22 @@
         
         # set initial values
         self.pluginManager = e5App().getObject("PluginManager")
-        self.viewmanagers = self.pluginManager.getPluginDisplayStrings("viewmanager")
+        self.viewmanagers = \
+            self.pluginManager.getPluginDisplayStrings("viewmanager")
         self.windowComboBox.clear()
         currentVm = Preferences.getViewManager()
         
         keys = sorted(self.viewmanagers.keys())
         for key in keys:
-            self.windowComboBox.addItem(self.trUtf8(self.viewmanagers[key]), key)
+            self.windowComboBox.addItem(
+                self.trUtf8(self.viewmanagers[key]), key)
         currentIndex = self.windowComboBox.findText(
             self.trUtf8(self.viewmanagers[currentVm]))
         self.windowComboBox.setCurrentIndex(currentIndex)
         self.on_windowComboBox_activated(currentIndex)
         
-        self.tabViewGroupBox.setTitle(self.trUtf8(self.viewmanagers["tabview"]))
+        self.tabViewGroupBox.setTitle(
+            self.trUtf8(self.viewmanagers["tabview"]))
         
         self.filenameLengthSpinBox.setValue(
             Preferences.getUI("TabViewManagerFilenameLength"))
@@ -77,7 +80,8 @@
         """
         workspace = \
             self.windowComboBox.itemData(self.windowComboBox.currentIndex())
-        pixmap = self.pluginManager.getPluginPreviewPixmap("viewmanager", workspace)
+        pixmap = \
+            self.pluginManager.getPluginPreviewPixmap("viewmanager", workspace)
         
         self.previewPixmap.setPixmap(pixmap)
         self.tabViewGroupBox.setEnabled(workspace == "tabview")
@@ -88,6 +92,7 @@
     Module function to create the configuration page.
     
     @param dlg reference to the configuration dialog
+    @return reference to the instantiated page (ConfigurationPageBase)
     """
     page = ViewmanagerPage()
     return page

eric ide

mercurial