commit | b217cd802ec5c9647278b74c311a14a8cdf13d2e | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Tue Aug 03 18:36:25 2004 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Tue Aug 03 18:36:25 2004 +0000 |
tree | f2ded9eaae732f8837fbd001d996204a0b6cb8ab | |
parent | f901abdd62c9067f993b85392dbb73a560af6325 [diff] [blame] |
Wait for visibility before setting a grab. Fixes #946153.
diff --git a/Lib/lib-tk/FileDialog.py b/Lib/lib-tk/FileDialog.py index 5e848da..b08d3a8 100644 --- a/Lib/lib-tk/FileDialog.py +++ b/Lib/lib-tk/FileDialog.py
@@ -119,6 +119,7 @@ self.set_selection(default) self.filter_command() self.selection.focus_set() + self.top.wait_visibility() # window needs to be visible for the grab self.top.grab_set() self.how = None self.master.mainloop() # Exited by self.quit(how)