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

Method var_changed_custom_name

Lib/idlelib/configdialog.py:786–795  ·  view source on GitHub ↗

Process new custom theme selection. If a new custom theme is selected, add the name to the changed_items and apply the theme to the sample.

(self, *params)

Source from the content-addressed store, hash-verified

784 self.paint_theme_sample()
785
786 def var_changed_custom_name(self, *params):
787 """Process new custom theme selection.
788
789 If a new custom theme is selected, add the name to the
790 changed_items and apply the theme to the sample.
791 """
792 value = self.custom_name.get()
793 if value != '- no custom themes -':
794 changes.add_option('main', 'Theme', 'name', value)
795 self.paint_theme_sample()
796
797 def var_changed_theme_source(self, *params):
798 """Process toggle between builtin and custom theme.

Callers 1

Calls 3

paint_theme_sampleMethod · 0.95
getMethod · 0.45
add_optionMethod · 0.45

Tested by

no test coverage detected