From c588b817f77fb8e971449ef928dace7cde3d15f7 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Sun, 30 Sep 2018 19:38:41 -0400 Subject: [PATCH] Used PopupError cfor bad element update --- PySimpleGUI.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index da3771c4..b11048d1 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -2056,7 +2056,11 @@ class ErrorElement(Element): return def Update(self, *args, **kwargs): - Popup('Keyword error', self.Key, 'Hey duffus, you gave me a bad key and now you\'re trying to do an update.', 'You need to stop this madness and check your spelling') + PopupError('Keyword error', + 'You need to stop this madness and check your spelling', + 'Bad key = {}'.format(self.Key), + 'Your bad line of code may resemble this:', + 'window.FindElement("{}")'.format(self.Key)) return