MCPcopy Index your code
hub / github.com/Akascape/CTkCodeBox / update_code

Method update_code

CTkCodeBox/ctk_code_box.py:147–152  ·  view source on GitHub ↗
(self, event=None, edited=True)

Source from the content-addressed store, hash-verified

145 self.tag_config(str(token), foreground=f'#{foreground}')
146
147 def update_code(self, event=None, edited=True):
148 code = self.get('0.0', 'end-1c')
149 self.clear_code()
150 self.highlight_code(code)
151 if edited:
152 self.edited = True
153
154 def clear_code(self):
155 for tag in self.tag_names():

Callers 1

insertMethod · 0.95

Calls 2

clear_codeMethod · 0.95
highlight_codeMethod · 0.95

Tested by

no test coverage detected