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
8a8bfa0b
Commit
8a8bfa0b
authored
Aug 22, 2008
by
Robert Schuppenies
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #1342811: Fixed broken patch.
Backport from trunk r65971.
parent
4806404e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Lib/lib-tk/Tkinter.py
Lib/lib-tk/Tkinter.py
+7
-5
No files found.
Lib/lib-tk/Tkinter.py
View file @
8a8bfa0b
...
@@ -2672,11 +2672,13 @@ class Menu(Widget):
...
@@ -2672,11 +2672,13 @@ class Menu(Widget):
if
index2
is
None
:
if
index2
is
None
:
index2
=
index1
index2
=
index1
cmds
=
[]
cmds
=
[]
for
i
in
range
(
self
.
index
(
index1
),
self
.
index
(
index2
)
+
1
):
(
num_index1
,
num_index2
)
=
(
self
.
index
(
index1
),
self
.
index
(
index2
))
if
'command'
in
self
.
entryconfig
(
i
):
if
(
num_index1
is
not
None
)
and
(
num_index2
is
not
None
):
c
=
str
(
self
.
entrycget
(
i
,
'command'
))
for
i
in
range
(
num_index1
,
num_index2
+
1
):
if
c
in
self
.
_tclCommands
:
if
'command'
in
self
.
entryconfig
(
i
):
cmds
.
append
(
c
)
c
=
str
(
self
.
entrycget
(
i
,
'command'
))
if
c
in
self
.
_tclCommands
:
cmds
.
append
(
c
)
self
.
tk
.
call
(
self
.
_w
,
'delete'
,
index1
,
index2
)
self
.
tk
.
call
(
self
.
_w
,
'delete'
,
index1
,
index2
)
for
c
in
cmds
:
for
c
in
cmds
:
self
.
deletecommand
(
c
)
self
.
deletecommand
(
c
)
...
...
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