diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-08-03 18:36:25 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-08-03 18:36:25 (GMT) |
commit | b217cd802ec5c9647278b74c311a14a8cdf13d2e (patch) | |
tree | f2ded9eaae732f8837fbd001d996204a0b6cb8ab /Lib/lib-tk/SimpleDialog.py | |
parent | f901abdd62c9067f993b85392dbb73a560af6325 (diff) | |
download | cpython-b217cd802ec5c9647278b74c311a14a8cdf13d2e.zip cpython-b217cd802ec5c9647278b74c311a14a8cdf13d2e.tar.gz cpython-b217cd802ec5c9647278b74c311a14a8cdf13d2e.tar.bz2 |
Wait for visibility before setting a grab. Fixes #946153.
Diffstat (limited to 'Lib/lib-tk/SimpleDialog.py')
-rw-r--r-- | Lib/lib-tk/SimpleDialog.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/lib-tk/SimpleDialog.py b/Lib/lib-tk/SimpleDialog.py index bb63a8d..cb08318 100644 --- a/Lib/lib-tk/SimpleDialog.py +++ b/Lib/lib-tk/SimpleDialog.py @@ -64,6 +64,7 @@ class SimpleDialog: widget.deiconify() # Become visible at the desired location def go(self): + self.root.wait_visibility() self.root.grab_set() self.root.mainloop() self.root.destroy() |