'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).
It is constructed from sys.argv[0] without extensions if None is given. CLASSNAME
is the name of the widget class.'

def __init__(self, screenName=None, baseName=None, className='Tk', useTk=1, sync=0, use=None):

    self.master = None
    self.children = {}
    self._tkloaded = 0
    self.tk = None
    if (baseName is None):
        import sys, os
        baseName = os.path.basename(sys.argv[0])
        (baseName, ext) = os.path.splitext(baseName)
        if (ext not in ('.py', '.pyc', '.pyo')):
            baseName = (baseName + ext)
    interactive = 0
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
    if useTk:
        self._loadtk()
    self.readprofile(baseName, className)
