mirror of
https://github.com/python/cpython.git
synced 2025-10-27 11:44:39 +00:00
Wait for visibility before setting a grab. Fixes #946153.
This commit is contained in:
parent
f901abdd62
commit
b217cd802e
3 changed files with 3 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ def _set_transient(self, master, relx=0.5, rely=0.3):
|
|||
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue