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
d7ae9c26
Commit
d7ae9c26
authored
Nov 26, 2002
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename want_objects to wantobjects throughout, for consistency.
parent
1c3dde82
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
Doc/whatsnew/whatsnew23.tex
Doc/whatsnew/whatsnew23.tex
+1
-1
Lib/lib-tk/Tkinter.py
Lib/lib-tk/Tkinter.py
+2
-2
Misc/NEWS
Misc/NEWS
+1
-1
Modules/_tkinter.c
Modules/_tkinter.c
+10
-10
No files found.
Doc/whatsnew/whatsnew23.tex
View file @
d7ae9c26
...
@@ -1300,7 +1300,7 @@ by invoking
...
@@ -1300,7 +1300,7 @@ by invoking
\begin{verbatim}
\begin{verbatim}
import Tkinter
import Tkinter
Tkinter.want
_
objects = 0
Tkinter.wantobjects = 0
\end{verbatim}
\end{verbatim}
before creating the first
\class
{
tkapp
}
object.
before creating the first
\class
{
tkapp
}
object.
...
...
Lib/lib-tk/Tkinter.py
View file @
d7ae9c26
...
@@ -45,7 +45,7 @@ try:
...
@@ -45,7 +45,7 @@ try:
except
ImportError
:
except
ImportError
:
_MacOS
=
None
_MacOS
=
None
want
_
objects
=
1
wantobjects
=
1
TkVersion
=
float
(
_tkinter
.
TK_VERSION
)
TkVersion
=
float
(
_tkinter
.
TK_VERSION
)
TclVersion
=
float
(
_tkinter
.
TCL_VERSION
)
TclVersion
=
float
(
_tkinter
.
TCL_VERSION
)
...
@@ -1523,7 +1523,7 @@ class Tk(Misc, Wm):
...
@@ -1523,7 +1523,7 @@ class Tk(Misc, Wm):
if
ext
not
in
(
'.py'
,
'.pyc'
,
'.pyo'
):
if
ext
not
in
(
'.py'
,
'.pyc'
,
'.pyo'
):
baseName
=
baseName
+
ext
baseName
=
baseName
+
ext
self
.
tk
=
_tkinter
.
create
(
screenName
,
baseName
,
className
)
self
.
tk
=
_tkinter
.
create
(
screenName
,
baseName
,
className
)
self
.
tk
.
wantobjects
(
want
_
objects
)
self
.
tk
.
wantobjects
(
wantobjects
)
if
_MacOS
and
hasattr
(
_MacOS
,
'SchedParams'
):
if
_MacOS
and
hasattr
(
_MacOS
,
'SchedParams'
):
# Disable event scanning except for Command-Period
# Disable event scanning except for Command-Period
_MacOS
.
SchedParams
(
1
,
0
)
_MacOS
.
SchedParams
(
1
,
0
)
...
...
Misc/NEWS
View file @
d7ae9c26
...
@@ -317,7 +317,7 @@ Extension modules
...
@@ -317,7 +317,7 @@ Extension modules
-
_tkinter
now
returns
Tcl
objects
,
instead
of
strings
.
Objects
which
-
_tkinter
now
returns
Tcl
objects
,
instead
of
strings
.
Objects
which
have
Python
equivalents
are
converted
to
Python
objects
,
other
objects
have
Python
equivalents
are
converted
to
Python
objects
,
other
objects
are
wrapped
.
This
can
be
configured
through
the
wantobjects
method
,
are
wrapped
.
This
can
be
configured
through
the
wantobjects
method
,
or
Tkinter
.
want
_
objects
.
or
Tkinter
.
wantobjects
.
-
The
PyBSDDB
wrapper
around
the
Sleepycat
Berkeley
DB
library
has
been
-
The
PyBSDDB
wrapper
around
the
Sleepycat
Berkeley
DB
library
has
been
added
as
the
package
bsddb
.
The
traditional
bsddb
module
is
still
added
as
the
package
bsddb
.
The
traditional
bsddb
module
is
still
...
...
Modules/_tkinter.c
View file @
d7ae9c26
...
@@ -221,7 +221,7 @@ static PyTypeObject Tkapp_Type;
...
@@ -221,7 +221,7 @@ static PyTypeObject Tkapp_Type;
typedef
struct
{
typedef
struct
{
PyObject_HEAD
PyObject_HEAD
Tcl_Interp
*
interp
;
Tcl_Interp
*
interp
;
int
want
_
objects
;
int
wantobjects
;
}
TkappObject
;
}
TkappObject
;
#define Tkapp_Check(v) ((v)->ob_type == &Tkapp_Type)
#define Tkapp_Check(v) ((v)->ob_type == &Tkapp_Type)
...
@@ -523,7 +523,7 @@ static void DisableEventHook(void); /* Forward */
...
@@ -523,7 +523,7 @@ static void DisableEventHook(void); /* Forward */
static
TkappObject
*
static
TkappObject
*
Tkapp_New
(
char
*
screenName
,
char
*
baseName
,
char
*
className
,
Tkapp_New
(
char
*
screenName
,
char
*
baseName
,
char
*
className
,
int
interactive
,
int
want
_
objects
)
int
interactive
,
int
wantobjects
)
{
{
TkappObject
*
v
;
TkappObject
*
v
;
char
*
argv0
;
char
*
argv0
;
...
@@ -533,7 +533,7 @@ Tkapp_New(char *screenName, char *baseName, char *className,
...
@@ -533,7 +533,7 @@ Tkapp_New(char *screenName, char *baseName, char *className,
return
NULL
;
return
NULL
;
v
->
interp
=
Tcl_CreateInterp
();
v
->
interp
=
Tcl_CreateInterp
();
v
->
want
_objects
=
want_
objects
;
v
->
want
objects
=
want
objects
;
#if defined(macintosh)
#if defined(macintosh)
/* This seems to be needed */
/* This seems to be needed */
...
@@ -901,7 +901,7 @@ Tkapp_Call(PyObject *self, PyObject *args)
...
@@ -901,7 +901,7 @@ Tkapp_Call(PyObject *self, PyObject *args)
ENTER_OVERLAP
ENTER_OVERLAP
if
(
i
==
TCL_ERROR
)
if
(
i
==
TCL_ERROR
)
Tkinter_Error
(
self
);
Tkinter_Error
(
self
);
else
if
(((
TkappObject
*
)
self
)
->
want
_
objects
)
{
else
if
(((
TkappObject
*
)
self
)
->
wantobjects
)
{
Tcl_Obj
*
value
=
Tcl_GetObjResult
(
interp
);
Tcl_Obj
*
value
=
Tcl_GetObjResult
(
interp
);
/* Not sure whether the IncrRef is necessary, but something
/* Not sure whether the IncrRef is necessary, but something
may overwrite the interpreter result while we are
may overwrite the interpreter result while we are
...
@@ -1967,10 +1967,10 @@ static PyObject *
...
@@ -1967,10 +1967,10 @@ static PyObject *
Tkapp_WantObjects
(
PyObject
*
self
,
PyObject
*
args
)
Tkapp_WantObjects
(
PyObject
*
self
,
PyObject
*
args
)
{
{
int
want
_
objects
;
int
wantobjects
;
if
(
!
PyArg_ParseTuple
(
args
,
"i:wantobjects"
,
&
want
_
objects
))
if
(
!
PyArg_ParseTuple
(
args
,
"i:wantobjects"
,
&
wantobjects
))
return
NULL
;
return
NULL
;
((
TkappObject
*
)
self
)
->
want
_objects
=
want_
objects
;
((
TkappObject
*
)
self
)
->
want
objects
=
want
objects
;
Py_INCREF
(
Py_None
);
Py_INCREF
(
Py_None
);
return
Py_None
;
return
Py_None
;
...
@@ -2179,7 +2179,7 @@ Tkinter_Create(PyObject *self, PyObject *args)
...
@@ -2179,7 +2179,7 @@ Tkinter_Create(PyObject *self, PyObject *args)
char
*
baseName
=
NULL
;
char
*
baseName
=
NULL
;
char
*
className
=
NULL
;
char
*
className
=
NULL
;
int
interactive
=
0
;
int
interactive
=
0
;
int
want
_
objects
=
0
;
int
wantobjects
=
0
;
baseName
=
strrchr
(
Py_GetProgramName
(),
'/'
);
baseName
=
strrchr
(
Py_GetProgramName
(),
'/'
);
if
(
baseName
!=
NULL
)
if
(
baseName
!=
NULL
)
...
@@ -2190,11 +2190,11 @@ Tkinter_Create(PyObject *self, PyObject *args)
...
@@ -2190,11 +2190,11 @@ Tkinter_Create(PyObject *self, PyObject *args)
if
(
!
PyArg_ParseTuple
(
args
,
"|zssi:create"
,
if
(
!
PyArg_ParseTuple
(
args
,
"|zssi:create"
,
&
screenName
,
&
baseName
,
&
className
,
&
screenName
,
&
baseName
,
&
className
,
&
interactive
,
&
want
_
objects
))
&
interactive
,
&
wantobjects
))
return
NULL
;
return
NULL
;
return
(
PyObject
*
)
Tkapp_New
(
screenName
,
baseName
,
className
,
return
(
PyObject
*
)
Tkapp_New
(
screenName
,
baseName
,
className
,
interactive
,
want
_
objects
);
interactive
,
wantobjects
);
}
}
static
PyMethodDef
moduleMethods
[]
=
static
PyMethodDef
moduleMethods
[]
=
...
...
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