src/eric7/Preferences/ConfigurationPages/GraphicsPage.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
--- a/src/eric7/Preferences/ConfigurationPages/GraphicsPage.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Preferences/ConfigurationPages/GraphicsPage.py	Wed Jul 13 14:55:47 2022 +0200
@@ -19,6 +19,7 @@
     """
     Class implementing the Printer configuration page.
     """
+
     def __init__(self):
         """
         Constructor
@@ -26,11 +27,11 @@
         super().__init__()
         self.setupUi(self)
         self.setObjectName("GraphicsPage")
-        
+
         # set initial values
         self.graphicsFont = Preferences.getGraphics("Font")
         self.graphicsFontSample.setFont(self.graphicsFont)
-        
+
         drawingMode = Preferences.getGraphics("DrawingMode")
         if drawingMode == "black_white":
             self.blackWhiteButton.setChecked(True)
@@ -38,13 +39,13 @@
             self.whiteBlackButton.setChecked(True)
         else:
             self.automaticButton.setChecked(True)
-    
+
     def save(self):
         """
         Public slot to save the Printer configuration.
         """
         Preferences.setGraphics("Font", self.graphicsFont)
-        
+
         if self.blackWhiteButton.isChecked():
             drawingMode = "black_white"
         elif self.whiteBlackButton.isChecked():
@@ -53,26 +54,25 @@
             # default is automatic
             drawingMode = "automatic"
         Preferences.setGraphics("DrawingMode", drawingMode)
-    
+
     @pyqtSlot()
     def on_graphicsFontButton_clicked(self):
         """
         Private method used to select the font for the graphics items.
         """
-        self.graphicsFont = self.selectFont(self.graphicsFontSample,
-                                            self.graphicsFont)
-        
+        self.graphicsFont = self.selectFont(self.graphicsFontSample, self.graphicsFont)
+
     def polishPage(self):
         """
         Public slot to perform some polishing actions.
         """
         self.graphicsFontSample.setFont(self.graphicsFont)
-    
+
 
 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