From a3eb36d2daa42246030558d0ceb4432535609322 Mon Sep 17 00:00:00 2001 From: Rick Lawson Date: Fri, 13 Oct 2023 14:42:26 -0400 Subject: [PATCH] Tooltips go off-screen #1224 use update_idletasks() instead of update() --- porcupine/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/porcupine/utils.py b/porcupine/utils.py index 92cf58fd5..cc58a63aa 100644 --- a/porcupine/utils.py +++ b/porcupine/utils.py @@ -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}")