Skip to content

Commit

Permalink
Tooltips go off-screen Akuli#1224
Browse files Browse the repository at this point in the history
use update_idletasks() instead of update()
  • Loading branch information
lawson89 committed Oct 13, 2023
1 parent c8b3c57 commit a3eb36d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion porcupine/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def show(self) -> None:
# the label will have light text on a light background or
# dark text on a dark background on some systems.
tkinter.Label(tipwindow, text=self.text, border=3, fg="black", bg="white").pack()
tipwindow.update()
tipwindow.update_idletasks()
tipwindow.geometry(f"+{self.mousex - tipwindow.winfo_width()}+{self.mousey - 30}")


Expand Down

0 comments on commit a3eb36d

Please sign in to comment.