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

Method save_as_new_theme

Lib/idlelib/configdialog.py:903–912  ·  view source on GitHub ↗

Prompt for new theme name and create the theme. Methods: get_new_theme_name create_new

(self)

Source from the content-addressed store, hash-verified

901 return new_theme
902
903 def save_as_new_theme(self):
904 """Prompt for new theme name and create the theme.
905
906 Methods:
907 get_new_theme_name
908 create_new
909 """
910 new_theme_name = self.get_new_theme_name('New Theme Name:')
911 if new_theme_name:
912 self.create_new(new_theme_name)
913
914 def create_new(self, new_theme_name):
915 """Create a new custom theme with the given name.

Callers

nothing calls this directly

Calls 2

get_new_theme_nameMethod · 0.95
create_newMethod · 0.95

Tested by

no test coverage detected