Closed whmsft closed 3 years ago
Thanks for reporting this. It's a crazy idiot mistake in the __setitem__
method. And since I don't write unittests, and I don't even try the dict like configuration, I never get an error.
However,
editor.config(language=identify_extension(extension))
should work.
it does not work..
Could you show me what kind of error you get?
okay okay.. it worked.. i just did a stupid mistake in my program.. lol anyways.. thanks for your active help..
so i was just trying to change the language in the CodeEditor by:
where editor is the
CodeEditor()
andidentify_extension()
returns the programming language name for the extension..but when i ran
openfile()
the language of the CodeEditor didn't change at all.. and was still the defaultpython
for every extension..