You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is a CodeView widget open and you switch from light mode to dark mode the application would crash
The first error I got was:
\chlorophyll\codeview.py", line 188, in _cmd_proxy
result = self.tk.call(self._orig, command, *args) _tkinter.TclError: unknown option "-activeforeground"
After messing around with the _cmd_proxy function:
def_cmd_proxy(self, command: str, *args) ->Any:
try:
ifcommandin {"insert", "delete", "replace"}:
start_line=int(str(self.tk.call(self._orig, "index", args[0])).split(".")[0])
end_line=start_lineiflen(args) ==3:
end_line=int(str(self.tk.call(self._orig, "index", args[1])).split(".")[0]) -1result=self.tk.call(self._orig, command, *args)
exceptTclErrorase:
error=str(e)
if'tagged with "sel"'inerroror"nothing to"inerror:
return""# added this to catch the unknown option errorsif"unknown option"inerror:
print(f"Ignoring unknown option: {error}")
return""# removed error return as it caused the crash
I did get it to not crash, but, it does cause weird visual artifacts.
Like this:
It should look like this:
The text was updated successfully, but these errors were encountered:
David-Vermaak
changed the title
Using sv_ttk causes weird visual bugs when using chlorophyll and switching between light and dark mode
Using sv_ttk causes crashes and weird visual bugs when using chlorophyll and switching between light and dark mode
Aug 29, 2024
David-Vermaak
changed the title
Using sv_ttk causes crashes and weird visual bugs when using chlorophyll and switching between light and dark mode
Using sv_ttk causes crashes and visual bugs when using chlorophyll and switching between light and dark mode
Aug 29, 2024
When there is a CodeView widget open and you switch from light mode to dark mode the application would crash
The first error I got was:
\chlorophyll\codeview.py", line 188, in _cmd_proxy
result = self.tk.call(self._orig, command, *args) _tkinter.TclError: unknown option "-activeforeground"
After messing around with the _cmd_proxy function:
Now I get this error in the console:
Ignoring unknown option: unknown option "-troughcolor"
Ignoring unknown option: unknown option "-activebackground"
Ignoring unknown option: unknown option "-disabledforeground"
Ignoring unknown option: unknown option "-activeforeground"
I did get it to not crash, but, it does cause weird visual artifacts.
Like this:
It should look like this:
The text was updated successfully, but these errors were encountered: