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
5dcb636d
Commit
5dcb636d
authored
Aug 03, 2004
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #986929: Add support for wish -sync and -use options.
parent
14e6fc3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/lib-tk/Tkinter.py
Lib/lib-tk/Tkinter.py
+3
-2
No files found.
Lib/lib-tk/Tkinter.py
View file @
5dcb636d
...
...
@@ -1546,7 +1546,8 @@ class Tk(Misc, Wm):
"""Toplevel widget of Tk which represents mostly the main window
of an appliation. It has an associated Tcl interpreter."""
_w
=
'.'
def
__init__
(
self
,
screenName
=
None
,
baseName
=
None
,
className
=
'Tk'
,
useTk
=
1
):
def
__init__
(
self
,
screenName
=
None
,
baseName
=
None
,
className
=
'Tk'
,
useTk
=
1
,
sync
=
0
,
use
=
None
):
"""Return a new Toplevel widget on screen SCREENNAME. A new Tcl interpreter will
be created. BASENAME will be used for the identification of the profile file (see
readprofile).
...
...
@@ -1565,7 +1566,7 @@ class Tk(Misc, Wm):
if
ext
not
in
(
'.py'
,
'.pyc'
,
'.pyo'
):
baseName
=
baseName
+
ext
interactive
=
0
self
.
tk
=
_tkinter
.
create
(
screenName
,
baseName
,
className
,
interactive
,
wantobjects
,
useTk
)
self
.
tk
=
_tkinter
.
create
(
screenName
,
baseName
,
className
,
interactive
,
wantobjects
,
useTk
,
sync
,
use
)
if
useTk
:
self
.
_loadtk
()
self
.
readprofile
(
baseName
,
className
)
...
...
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