MCPcopy Index your code
hub / github.com/python/cpython / get_new_theme_name

Method get_new_theme_name

Lib/idlelib/configdialog.py:895–901  ·  view source on GitHub ↗

Return name of new theme from query popup.

(self, message)

Source from the content-addressed store, hash-verified

893 changes.add_option('highlight', theme, theme_element, new_color)
894
895 def get_new_theme_name(self, message):
896 "Return name of new theme from query popup."
897 used_names = (idleConf.GetSectionList('user', 'highlight') +
898 idleConf.GetSectionList('default', 'highlight'))
899 new_theme = SectionName(
900 self, 'New Custom Theme', message, used_names).result
901 return new_theme
902
903 def save_as_new_theme(self):
904 """Prompt for new theme name and create the theme.

Callers 3

get_colorMethod · 0.95
save_as_new_themeMethod · 0.95

Calls 2

SectionNameClass · 0.90
GetSectionListMethod · 0.80

Tested by 1