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

Method check_lexer

CTkCodeBox/ctk_code_box.py:129–136  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

127 self.edited = False
128
129 def check_lexer(self):
130 if type(self.language) is str:
131 if self.language.lower() in self.common_langs:
132 self.lexer = self.common_langs[self.language.lower()]
133 else:
134 raise ValueError("This language is not available, try to pass the pygments lexer instead. \nAvailable lexers: https://pygments.org/docs/lexers")
135 else:
136 self.lexer = self.language
137
138 def configure_tags(self):
139 if self.theme_name not in self.all_themes:

Callers 2

__init__Method · 0.95
configureMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected