eric6/Preferences/ConfigurationPages/NotificationsPage.py

changeset 7955
567f2ec958c3
parent 7952
1849f61cf2b6
child 7959
44e15eda6506
equal deleted inserted replaced
7954:d32319ede131 7955:567f2ec958c3
37 37
38 self.__notification = None 38 self.__notification = None
39 self.__firstTime = True 39 self.__firstTime = True
40 40
41 # set initial values 41 # set initial values
42 self.enableCheckBox.setChecked(
43 Preferences.getUI("NotificationsEnabled"))
44 self.timeoutSpinBox.setValue(Preferences.getUI("NotificationTimeout")) 42 self.timeoutSpinBox.setValue(Preferences.getUI("NotificationTimeout"))
45 point = Preferences.getUI("NotificationPosition") 43 point = Preferences.getUI("NotificationPosition")
46 self.xSpinBox.setValue(point.x()) 44 self.xSpinBox.setValue(point.x())
47 self.ySpinBox.setValue(point.y()) 45 self.ySpinBox.setValue(point.y())
48 46
51 49
52 def save(self): 50 def save(self):
53 """ 51 """
54 Public slot to save the Notifications configuration. 52 Public slot to save the Notifications configuration.
55 """ 53 """
56 Preferences.setUI(
57 "NotificationsEnabled", self.enableCheckBox.isChecked())
58 Preferences.setUI("NotificationTimeout", self.timeoutSpinBox.value()) 54 Preferences.setUI("NotificationTimeout", self.timeoutSpinBox.value())
59 Preferences.setUI("NotificationPosition", QPoint( 55 Preferences.setUI("NotificationPosition", QPoint(
60 self.xSpinBox.value(), self.ySpinBox.value())) 56 self.xSpinBox.value(), self.ySpinBox.value()))
61 57
62 @pyqtSlot(bool) 58 @pyqtSlot(bool)

eric ide

mercurial