Save a newly created theme to idleConf. theme_name - string, the name of the new theme theme - dictionary containing the new theme
(self, theme_name, theme)
| 1046 | self.set_color_sample() |
| 1047 | |
| 1048 | def save_new(self, theme_name, theme): |
| 1049 | """Save a newly created theme to idleConf. |
| 1050 | |
| 1051 | theme_name - string, the name of the new theme |
| 1052 | theme - dictionary containing the new theme |
| 1053 | """ |
| 1054 | idleConf.userCfg['highlight'].AddSection(theme_name) |
| 1055 | for element in theme: |
| 1056 | value = theme[element] |
| 1057 | idleConf.userCfg['highlight'].SetOption(theme_name, element, value) |
| 1058 | |
| 1059 | def askyesno(self, *args, **kwargs): |
| 1060 | # Make testing easier. Could change implementation. |
no test coverage detected