--- 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