Mercurial > cpython-lru_cache-weakref
diff Lib/lib-tk/SimpleDialog.py @ 32940:22ded309648b legacy-trunk
Wait for visibility before setting a grab. Fixes #946153.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Tue, 03 Aug 2004 18:36:25 +0000 |
| parents | 29be729b32c3 |
| children | 4cdf21a0dbbc |
line wrap: on
line diff
--- a/Lib/lib-tk/SimpleDialog.py Tue Aug 03 17:58:55 2004 +0000 +++ b/Lib/lib-tk/SimpleDialog.py Tue Aug 03 18:36:25 2004 +0000 @@ -64,6 +64,7 @@ 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()
