Commit 5dcb636d authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #986929: Add support for wish -sync and -use options.

parent 14e6fc3e
...@@ -1546,7 +1546,8 @@ class Tk(Misc, Wm): ...@@ -1546,7 +1546,8 @@ class Tk(Misc, Wm):
"""Toplevel widget of Tk which represents mostly the main window """Toplevel widget of Tk which represents mostly the main window
of an appliation. It has an associated Tcl interpreter.""" of an appliation. It has an associated Tcl interpreter."""
_w = '.' _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 """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 be created. BASENAME will be used for the identification of the profile file (see
readprofile). readprofile).
...@@ -1565,7 +1566,7 @@ class Tk(Misc, Wm): ...@@ -1565,7 +1566,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
interactive = 0 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: if useTk:
self._loadtk() self._loadtk()
self.readprofile(baseName, className) self.readprofile(baseName, className)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment