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
73d2da42
Commit
73d2da42
authored
Apr 05, 2012
by
Andrew Svetlov
Browse files
Options
Browse Files
Download
Plain Diff
Merge from 3.2
parents
e7eee01f
1024541a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Lib/idlelib/tabbedpages.py
Lib/idlelib/tabbedpages.py
+2
-2
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/idlelib/tabbedpages.py
View file @
73d2da42
...
...
@@ -78,7 +78,7 @@ class TabSet(Frame):
def
remove_tab
(
self
,
tab_name
):
"""Remove the tab named <tab_name>"""
if
not
tab_name
in
self
.
_tab_names
:
raise
KeyError
(
"No such Tab: '%s"
%
page
_name
)
raise
KeyError
(
"No such Tab: '%s"
%
tab
_name
)
self
.
_tab_names
.
remove
(
tab_name
)
self
.
_arrange_tabs
()
...
...
@@ -88,7 +88,7 @@ class TabSet(Frame):
if
tab_name
==
self
.
_selected_tab
:
return
if
tab_name
is
not
None
and
tab_name
not
in
self
.
_tabs
:
raise
KeyError
(
"No such Tab: '%s"
%
page
_name
)
raise
KeyError
(
"No such Tab: '%s"
%
tab
_name
)
# deselect the current selected tab
if
self
.
_selected_tab
is
not
None
:
...
...
Misc/NEWS
View file @
73d2da42
...
...
@@ -19,6 +19,9 @@ Core and Builtins
Library
-------
- Issue #14496: Fix wrong name in idlelib/tabbedpages.py.
Patch by Popa Claudiu.
- Issue #3033: Add displayof parameter to tkinter font. Patch by Guilherme Polo.
- Issue #14482: Raise a ValueError, not a NameError, when trying to create
...
...
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