Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
dd74369c
Commit
dd74369c
authored
Aug 02, 2018
by
Tal Einat
Committed by
GitHub
Aug 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34120: fix text viewer to call grab_release() only when needed (GH-8616)
parent
10ea9409
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Lib/idlelib/textview.py
Lib/idlelib/textview.py
+4
-2
No files found.
Lib/idlelib/textview.py
View file @
dd74369c
...
...
@@ -83,7 +83,8 @@ class ViewWindow(Toplevel):
command
=
self
.
ok
,
takefocus
=
False
)
self
.
viewframe
.
pack
(
side
=
'top'
,
expand
=
True
,
fill
=
'both'
)
if
modal
:
self
.
is_modal
=
modal
if
self
.
is_modal
:
self
.
transient
(
parent
)
self
.
grab_set
()
if
not
_utest
:
...
...
@@ -91,7 +92,8 @@ class ViewWindow(Toplevel):
def
ok
(
self
,
event
=
None
):
"""Dismiss text viewer dialog."""
self
.
grab_release
()
if
self
.
is_modal
:
self
.
grab_release
()
self
.
destroy
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment