Preferences/ConfigurationPages/TasksPage.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
8 """ 8 """
9 9
10 from PyQt4.QtCore import pyqtSlot 10 from PyQt4.QtCore import pyqtSlot
11 from PyQt4.QtGui import QPixmap, QIcon 11 from PyQt4.QtGui import QPixmap, QIcon
12 12
13 from ConfigurationPageBase import ConfigurationPageBase 13 from .ConfigurationPageBase import ConfigurationPageBase
14 from Ui_TasksPage import Ui_TasksPage 14 from .Ui_TasksPage import Ui_TasksPage
15 15
16 import Preferences 16 import Preferences
17 17
18 class TasksPage(ConfigurationPageBase, Ui_TasksPage): 18 class TasksPage(ConfigurationPageBase, Ui_TasksPage):
19 """ 19 """
51 Public slot to save the Tasks configuration. 51 Public slot to save the Tasks configuration.
52 """ 52 """
53 Preferences.setTasks("TasksMarkers", self.tasksMarkerEdit.text()) 53 Preferences.setTasks("TasksMarkers", self.tasksMarkerEdit.text())
54 Preferences.setTasks("TasksMarkersBugfix", 54 Preferences.setTasks("TasksMarkersBugfix",
55 self.tasksMarkerBugfixEdit.text()) 55 self.tasksMarkerBugfixEdit.text())
56 for key in self.tasksColours.keys(): 56 for key in list(self.tasksColours.keys()):
57 Preferences.setTasks(key, self.tasksColours[key]) 57 Preferences.setTasks(key, self.tasksColours[key])
58 58
59 @pyqtSlot() 59 @pyqtSlot()
60 def on_tasksColourButton_clicked(self): 60 def on_tasksColourButton_clicked(self):
61 """ 61 """

eric ide

mercurial