8000 bpo-37177: make IDLE's search dialogs transient by taleinat · Pull Request #13869 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-37177: make IDLE's search dialogs transient #13869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
make the search dialogs transient
  • Loading branch information
taleinat committed Jun 6, 2019
commit f4d8a3118596db58cfa9860b4a62cb4293816b3e
2 changes: 2 additions & 0 deletions Lib/idlelib/searchbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def open(self, text, searchphrase=None):
else:
self.top.deiconify()
self.top.tkraise()
self.top.transient(text.winfo_toplevel())
if searchphrase:
self.ent.delete(0,"end")
self.ent.insert("end",searchphrase)
Expand All @@ -66,6 +67,7 @@ def close(self, event=None):
"Put dialog away for later use."
if self.top:
self.top.grab_release()
self.top.transient('')
self.top.withdraw()

def create_widgets(self):
Expand Down
0