src/eric7/Preferences/ConfigurationPages/HelpViewersPage.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
--- a/src/eric7/Preferences/ConfigurationPages/HelpViewersPage.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Preferences/ConfigurationPages/HelpViewersPage.py	Wed Jul 13 14:55:47 2022 +0200
@@ -23,6 +23,7 @@
     """
     Class implementing the Help Viewers configuration page.
     """
+
     def __init__(self):
         """
         Constructor
@@ -30,16 +31,16 @@
         super().__init__()
         self.setupUi(self)
         self.setObjectName("HelpViewersPage")
-        
+
         self.customViewerPicker.setMode(EricPathPickerModes.OPEN_FILE_MODE)
-        
+
         self.helpViewerGroup = QButtonGroup()
         self.helpViewerGroup.addButton(self.internalViewerButton, 0)
         self.helpViewerGroup.addButton(self.helpBrowserButton, 1)
         self.helpViewerGroup.addButton(self.qtAssistantButton, 2)
         self.helpViewerGroup.addButton(self.webBrowserButton, 3)
         self.helpViewerGroup.addButton(self.customViewerButton, 4)
-        
+
         # set initial values
         hvId = Preferences.getHelp("HelpViewerType")
         webBrowserVariant = getWebBrowserSupport()
@@ -47,27 +48,22 @@
             if hvId == 1:
                 hvId = 0
             self.helpBrowserButton.setEnabled(False)
-        
+
         self.helpViewerGroup.button(hvId).setChecked(True)
-        self.customViewerPicker.setText(
-            Preferences.getHelp("CustomViewer"))
-        
+        self.customViewerPicker.setText(Preferences.getHelp("CustomViewer"))
+
     def save(self):
         """
         Public slot to save the Help Viewers configuration.
         """
-        Preferences.setHelp(
-            "HelpViewerType",
-            self.helpViewerGroup.checkedId())
-        Preferences.setHelp(
-            "CustomViewer",
-            self.customViewerPicker.text())
-    
+        Preferences.setHelp("HelpViewerType", self.helpViewerGroup.checkedId())
+        Preferences.setHelp("CustomViewer", self.customViewerPicker.text())
+
 
 def create(dlg):
     """
     Module function to create the configuration page.
-    
+
     @param dlg reference to the configuration dialog
     @return reference to the instantiated page (ConfigurationPageBase)
     """

eric ide

mercurial