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
ffad633a
Commit
ffad633a
authored
Nov 26, 2002
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #518625: Return objects in Tkinter.
parent
52ea7e92
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
335 additions
and
6 deletions
+335
-6
Lib/lib-tk/Tkinter.py
Lib/lib-tk/Tkinter.py
+3
-0
Misc/NEWS
Misc/NEWS
+5
-0
Modules/_tkinter.c
Modules/_tkinter.c
+327
-6
No files found.
Lib/lib-tk/Tkinter.py
View file @
ffad633a
...
...
@@ -45,6 +45,8 @@ try:
except
ImportError
:
_MacOS
=
None
want_objects
=
1
TkVersion
=
float
(
_tkinter
.
TK_VERSION
)
TclVersion
=
float
(
_tkinter
.
TCL_VERSION
)
...
...
@@ -1521,6 +1523,7 @@ class Tk(Misc, Wm):
if
ext
not
in
(
'.py'
,
'.pyc'
,
'.pyo'
):
baseName
=
baseName
+
ext
self
.
tk
=
_tkinter
.
create
(
screenName
,
baseName
,
className
)
self
.
tk
.
wantobjects
(
want_objects
)
if
_MacOS
and
hasattr
(
_MacOS
,
'SchedParams'
):
# Disable event scanning except for Command-Period
_MacOS
.
SchedParams
(
1
,
0
)
...
...
Misc/NEWS
View file @
ffad633a
...
...
@@ -312,6 +312,11 @@ Core and builtins
Extension
modules
-----------------
-
_tkinter
now
returns
Tcl
objects
,
instead
of
strings
.
Objects
which
have
Python
equivalents
are
converted
to
Python
objects
,
other
objects
are
wrapped
.
This
can
be
configured
through
the
wantobjects
method
,
or
Tkinter
.
want_objects
.
-
The
PyBSDDB
wrapper
around
the
Sleepycat
Berkely
DB
library
has
been
added
as
the
package
bsddb
.
The
traditional
bsddb
module
is
still
available
in
source
code
,
but
not
built
automatically
anymore
,
and
...
...
Modules/_tkinter.c
View file @
ffad633a
This diff is collapsed.
Click to expand it.
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