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
764d6c7a
Commit
764d6c7a
authored
Feb 14, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gave the Listbox selection methods their correct (longer) names.
Removed select_adjust -- Tk no longer supports this.
parent
1851a676
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Lib/lib-tk/Tkinter.py
Lib/lib-tk/Tkinter.py
+4
-2
Lib/tkinter/Tkinter.py
Lib/tkinter/Tkinter.py
+4
-2
No files found.
Lib/lib-tk/Tkinter.py
View file @
764d6c7a
...
...
@@ -1267,18 +1267,20 @@ class Listbox(Widget):
i
=
self
.
tk
.
call
(
self
.
_w
,
'index'
,
index
)
if
i
==
'none'
:
return
None
return
self
.
tk
.
getint
(
i
)
def
select_adjust
(
self
,
index
):
self
.
tk
.
call
(
self
.
_w
,
'select'
,
'adjust'
,
index
)
def
select_anchor
(
self
,
index
):
self
.
tk
.
call
(
self
.
_w
,
'selection'
,
'anchor'
,
index
)
selection_anchor
=
select_anchor
def
select_clear
(
self
,
first
,
last
=
None
):
self
.
tk
.
call
(
self
.
_w
,
'selection'
,
'clear'
,
first
,
last
)
selection_clear
=
select_clear
def
select_includes
(
self
,
index
):
return
self
.
tk
.
getboolean
(
self
.
tk
.
call
(
self
.
_w
,
'selection'
,
'includes'
,
index
))
selection_includes
=
select_includes
def
select_set
(
self
,
first
,
last
=
None
):
self
.
tk
.
call
(
self
.
_w
,
'selection'
,
'set'
,
first
,
last
)
selection_set
=
select_set
def
size
(
self
):
return
self
.
tk
.
getint
(
self
.
tk
.
call
(
self
.
_w
,
'size'
))
def
xview
(
self
,
*
what
):
...
...
Lib/tkinter/Tkinter.py
View file @
764d6c7a
...
...
@@ -1267,18 +1267,20 @@ class Listbox(Widget):
i
=
self
.
tk
.
call
(
self
.
_w
,
'index'
,
index
)
if
i
==
'none'
:
return
None
return
self
.
tk
.
getint
(
i
)
def
select_adjust
(
self
,
index
):
self
.
tk
.
call
(
self
.
_w
,
'select'
,
'adjust'
,
index
)
def
select_anchor
(
self
,
index
):
self
.
tk
.
call
(
self
.
_w
,
'selection'
,
'anchor'
,
index
)
selection_anchor
=
select_anchor
def
select_clear
(
self
,
first
,
last
=
None
):
self
.
tk
.
call
(
self
.
_w
,
'selection'
,
'clear'
,
first
,
last
)
selection_clear
=
select_clear
def
select_includes
(
self
,
index
):
return
self
.
tk
.
getboolean
(
self
.
tk
.
call
(
self
.
_w
,
'selection'
,
'includes'
,
index
))
selection_includes
=
select_includes
def
select_set
(
self
,
first
,
last
=
None
):
self
.
tk
.
call
(
self
.
_w
,
'selection'
,
'set'
,
first
,
last
)
selection_set
=
select_set
def
size
(
self
):
return
self
.
tk
.
getint
(
self
.
tk
.
call
(
self
.
_w
,
'size'
))
def
xview
(
self
,
*
what
):
...
...
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