1. Armin Rigo
  2. cpython-withatomic


Martin von Löwis  committed 66dc211

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

  • Participants
  • Parent commits 22ded30
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/lib-tk/Tkinter.py

View file
  • Ignore whitespace
     """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
             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.readprofile(baseName, className)