Skip to content

Commit 82a5840

Browse files
Merge pull request PySimpleGUI#392 from MikeTheWatchGuy/Dev-latest
Used PopupError cfor bad element update
2 parents 800f572 + c588b81 commit 82a5840

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

PySimpleGUI.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,11 @@ def __init__(self, key=None):
20562056
return
20572057

20582058
def Update(self, *args, **kwargs):
2059-
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')
2059+
PopupError('Keyword error',
2060+
'You need to stop this madness and check your spelling',
2061+
'Bad key = {}'.format(self.Key),
2062+
'Your bad line of code may resemble this:',
2063+
'window.FindElement("{}")'.format(self.Key))
20602064
return
20612065

20622066

0 commit comments

Comments
 (0)