From aceed686c7e9f80843453933f8e5c8f8be7f73f8 Mon Sep 17 00:00:00 2001 From: Anna Petrasova Date: Tue, 25 Apr 2023 09:48:06 -0400 Subject: [PATCH] wxGUI: fix wxAssertionError when opening tools from console (#2934) --- gui/wxpython/gui_core/prompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/wxpython/gui_core/prompt.py b/gui/wxpython/gui_core/prompt.py index de1d1e6896b..ef868c3d3d7 100644 --- a/gui/wxpython/gui_core/prompt.py +++ b/gui/wxpython/gui_core/prompt.py @@ -348,7 +348,7 @@ def OnKillFocus(self, event): self.AutoCompCancel() # show hint if self.IsEmpty(): - self._showHint() + wx.CallAfter(self._showHint) event.Skip() def OnSetFocus(self, event):