parameters: (self, screenName=None, baseName=None, className='Tk',
                   useTk=1, sync=0, use=None)
docstring: 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.
docstring_summary: 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.
docstring_tokens: 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 .
function: 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).
          It is constructed from sys.argv[0] without extensions if None is given. CLASSNAME
          is the name of the widget class."""
          self.master = None
          self.children = {}
          self._tkloaded = 0
          # to avoid recursions in the getattr code in case of failure, we
          # ensure that self.tk is always _something_.
          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()
          if not sys.flags.ignore_environment:
              # Issue #16248: Honor the -E flag to avoid code injection.
              self.readprofile(baseName, className)
function_tokens: def __init__ ( self , screenName = None , baseName = None , className = 'Tk' , useTk = 1 , sync = 0 , use = None ) : self . master = None self . children = { } self . _tkloaded = 0 # to avoid recursions in the getattr code in case of failure, we # ensure that self.tk is always _something_. 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 ( ) if not sys . flags . ignore_environment : # Issue #16248: Honor the -E flag to avoid code injection. self . readprofile ( baseName , className )