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

Method make_text_widget

Lib/idlelib/idle_test/test_squeezer.py:102–108  ·  view source on GitHub ↗
(self, root=None)

Source from the content-addressed store, hash-verified

100 return squeezer
101
102 def make_text_widget(self, root=None):
103 if root is None:
104 root = get_test_tk_root(self)
105 text_widget = Text(root)
106 text_widget["font"] = ('Courier', 10)
107 text_widget.mark_set("iomark", "1.0")
108 return text_widget
109
110 def set_idleconf_option_with_cleanup(self, configType, section, option, value):
111 prev_val = idleConf.GetOption(configType, section, option)

Callers 1

Calls 3

mark_setMethod · 0.95
TextClass · 0.90
get_test_tk_rootFunction · 0.85

Tested by

no test coverage detected