Preferences/ConfigurationPages/IrcPage.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3010
befeff46ec0f
child 3058
0a02c433f52d
--- a/Preferences/ConfigurationPages/IrcPage.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Preferences/ConfigurationPages/IrcPage.py	Fri Oct 18 23:00:41 2013 +0200
@@ -37,7 +37,8 @@
         # set initial values
         # timestamps
         self.timestampGroup.setChecked(Preferences.getIrc("ShowTimestamps"))
-        self.showDateCheckBox.setChecked(Preferences.getIrc("TimestampIncludeDate"))
+        self.showDateCheckBox.setChecked(
+            Preferences.getIrc("TimestampIncludeDate"))
         self.timeFormatCombo.setCurrentIndex(
             self.timeFormatCombo.findText(Preferences.getIrc("TimeFormat")))
         self.dateFormatCombo.setCurrentIndex(
@@ -68,7 +69,8 @@
                          Preferences.getIrc, byName=True)
         
         # notifications
-        self.notificationsGroup.setChecked(Preferences.getIrc("ShowNotifications"))
+        self.notificationsGroup.setChecked(
+            Preferences.getIrc("ShowNotifications"))
         self.joinLeaveCheckBox.setChecked(Preferences.getIrc("NotifyJoinPart"))
         self.messageCheckBox.setChecked(Preferences.getIrc("NotifyMessage"))
         self.ownNickCheckBox.setChecked(Preferences.getIrc("NotifyNick"))
@@ -110,14 +112,17 @@
         # Automatic User Information Lookup
         self.whoGroup.setChecked(Preferences.getIrc("AutoUserInfoLookup"))
         self.whoUsersSpinBox.setValue(Preferences.getIrc("AutoUserInfoMax"))
-        self.whoIntervalSpinBox.setValue(Preferences.getIrc("AutoUserInfoInterval"))
+        self.whoIntervalSpinBox.setValue(
+            Preferences.getIrc("AutoUserInfoInterval"))
         
         # Markers
         self.markWhenHiddenCheckBox.setChecked(
             Preferences.getIrc("MarkPositionWhenHidden"))
-        self.initColour("MarkerLineForegroundColour", self.markerForegroundButton,
+        self.initColour("MarkerLineForegroundColour",
+                         self.markerForegroundButton,
                          Preferences.getIrc, byName=True)
-        self.initColour("MarkerLineBackgroundColour", self.markerBackgroundButton,
+        self.initColour("MarkerLineBackgroundColour",
+                         self.markerBackgroundButton,
                          Preferences.getIrc, byName=True)
         
         # Shutdown
@@ -130,27 +135,32 @@
         """
         # timestamps
         Preferences.setIrc("ShowTimestamps", self.timestampGroup.isChecked())
-        Preferences.setIrc("TimestampIncludeDate", self.showDateCheckBox.isChecked())
+        Preferences.setIrc(
+            "TimestampIncludeDate", self.showDateCheckBox.isChecked())
         Preferences.setIrc("TimeFormat", self.timeFormatCombo.currentText())
         Preferences.setIrc("DateFormat", self.dateFormatCombo.currentText())
         
         # notifications
-        Preferences.setIrc("ShowNotifications", self.notificationsGroup.isChecked())
-        Preferences.setIrc("NotifyJoinPart", self.joinLeaveCheckBox.isChecked())
+        Preferences.setIrc(
+            "ShowNotifications", self.notificationsGroup.isChecked())
+        Preferences.setIrc(
+            "NotifyJoinPart", self.joinLeaveCheckBox.isChecked())
         Preferences.setIrc("NotifyMessage", self.messageCheckBox.isChecked())
         Preferences.setIrc("NotifyNick", self.ownNickCheckBox.isChecked())
         
         # Automatic User Information Lookup
         Preferences.setIrc("AutoUserInfoLookup", self.whoGroup.isChecked())
         Preferences.setIrc("AutoUserInfoMax", self.whoUsersSpinBox.value())
-        Preferences.setIrc("AutoUserInfoInterval", self.whoIntervalSpinBox.value())
+        Preferences.setIrc(
+            "AutoUserInfoInterval", self.whoIntervalSpinBox.value())
         
         # Markers
         Preferences.setIrc("MarkPositionWhenHidden",
             self.markWhenHiddenCheckBox.isChecked())
         
         # Shutdown
-        Preferences.setIrc("AskOnShutdown", self.confirmShutdownCheckBox.isChecked())
+        Preferences.setIrc(
+            "AskOnShutdown", self.confirmShutdownCheckBox.isChecked())
         
         # colours
         self.saveColours(Preferences.setIrc)
@@ -161,6 +171,7 @@
     Module function to create the configuration page.
     
     @param dlg reference to the configuration dialog
+    @return reference to the instantiated page (ConfigurationPageBase)
     """
     page = IrcPage()
     return page

eric ide

mercurial