Skip to content

Commit

Permalink
Completed #4
Browse files Browse the repository at this point in the history
  • Loading branch information
thelabcat committed Apr 27, 2024
1 parent 30b0a72 commit d245ecb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bookworm_wordlist_editor.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,11 @@ class Editor(Tk):
else:
mb.showinfo("Already have word", f"The word {new} is already in the word list.")

#Highlight the new word even if it wasn't actually new, so long as it is in our current search results
#TODO this isn't working. See issue #4
#Highlight and scroll to the new word even if it wasn't actually new, so long as it is in our current search results
if new in self.query_list.get():
self.query_box.activate(self.query_list.get().index(new))
word_query_index = self.query_list.get().index(new)
self.query_box.selection_set(word_query_index)
self.query_box.yview(word_query_index)

def update_query(self, *args):
"""Update the list of search results"""
Expand Down

0 comments on commit d245ecb

Please sign in to comment.