summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-08-03 18:36:25 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-08-03 18:36:25 (GMT)
commit9441c078cf929a0129a75032678a9e40d919f235 (patch)
tree82ad4bd640f0d979e7171fef63c512920242c1fb /Lib/lib-tk
parentb217cd802ec5c9647278b74c311a14a8cdf13d2e (diff)
downloadcpython-9441c078cf929a0129a75032678a9e40d919f235.zip
cpython-9441c078cf929a0129a75032678a9e40d919f235.tar.gz
cpython-9441c078cf929a0129a75032678a9e40d919f235.tar.bz2
Patch #986929: Add support for wish -sync and -use options.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 3ffd2df..fa57e25 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -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)