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

Method var_changed_theme_source

Lib/idlelib/configdialog.py:797–808  ·  view source on GitHub ↗

Process toggle between builtin and custom theme. Update the default toggle value and apply the newly selected theme type.

(self, *params)

Source from the content-addressed store, hash-verified

795 self.paint_theme_sample()
796
797 def var_changed_theme_source(self, *params):
798 """Process toggle between builtin and custom theme.
799
800 Update the default toggle value and apply the newly
801 selected theme type.
802 """
803 value = self.theme_source.get()
804 changes.add_option('main', 'Theme', 'default', value)
805 if value:
806 self.var_changed_builtin_name()
807 else:
808 self.var_changed_custom_name()
809
810 def var_changed_color(self, *params):
811 "Process change to color choice."

Callers

nothing calls this directly

Calls 4

getMethod · 0.45
add_optionMethod · 0.45

Tested by

no test coverage detected