11 from .Ui_TrayStarterPage import Ui_TrayStarterPage |
11 from .Ui_TrayStarterPage import Ui_TrayStarterPage |
12 |
12 |
13 import Preferences |
13 import Preferences |
14 import UI.PixmapCache |
14 import UI.PixmapCache |
15 |
15 |
|
16 |
16 class TrayStarterPage(ConfigurationPageBase, Ui_TrayStarterPage): |
17 class TrayStarterPage(ConfigurationPageBase, Ui_TrayStarterPage): |
17 """ |
18 """ |
18 Class implementing the tray starter configuration page. |
19 Class implementing the tray starter configuration page. |
19 """ |
20 """ |
20 def __init__(self, parent = None): |
21 def __init__(self, parent=None): |
21 """ |
22 """ |
22 Constructor |
23 Constructor |
23 |
24 |
24 @param parent reference to the parent widget (QWidget) |
25 @param parent reference to the parent widget (QWidget) |
25 """ |
26 """ |
55 iconName = "erict-bw.png" |
56 iconName = "erict-bw.png" |
56 elif self.blackWhiteInverseButton.isChecked(): |
57 elif self.blackWhiteInverseButton.isChecked(): |
57 iconName = "erict-bwi.png" |
58 iconName = "erict-bwi.png" |
58 Preferences.setTrayStarter("TrayStarterIcon", iconName) |
59 Preferences.setTrayStarter("TrayStarterIcon", iconName) |
59 |
60 |
|
61 |
60 def create(dlg): |
62 def create(dlg): |
61 """ |
63 """ |
62 Module function to create the configuration page. |
64 Module function to create the configuration page. |
63 |
65 |
64 @param dlg reference to the configuration dialog |
66 @param dlg reference to the configuration dialog |