Skip to content

Commit

Permalink
Fix use of "hack"
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbautista committed Jun 13, 2024
1 parent ddedcdf commit 608d0e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qtconsole/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,10 +810,10 @@ def set_syntax_style(self, syntax_style):
self.active_frontend._syntax_style_changed()
self.active_frontend._style_sheet_changed()
self.active_frontend.reset(clear=True)
selectColor = styles.get_colors(syntax_style)
self.active_frontend._execute("from IPython.core.ultratb import VerboseTB\n"+
f"VerboseTB._tb_highlight = 'bg:%{selectColor}'\n"+
f"VerboseTB._tb_highlight_style = '{syntax_style}'", True)
self.active_frontend._execute(
f"from IPython.core.ultratb import VerboseTB;"
"VerboseTB._tb_highlight_style = '{syntax_style}'",
True)


def close_active_frontend(self):
Expand Down

0 comments on commit 608d0e5

Please sign in to comment.