Skip to content

Commit

Permalink
fix: Restore text highlighting functionality
Browse files Browse the repository at this point in the history
- Added text tag configuration for correct (green) and incorrect (red) text highlighting
- Fixed missing color configuration in text display
  • Loading branch information
Hassan Shabbir Ahmed committed Nov 30, 2024
1 parent bb5cfd1 commit 4477f05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ def _create_widgets(self) -> None:
)
self.text_display.pack(pady=20)

# Configure text tags for coloring
self.text_display.tag_configure('correct', foreground='green')
self.text_display.tag_configure('incorrect', foreground='red')

# Input field
self.input_field = ttk.Entry(
self.root,
Expand Down

0 comments on commit 4477f05

Please sign in to comment.