(self, screenName=None, baseName=None, className='Tk',
                 useTk=True, sync=False, 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.
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.
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=True, sync=False, 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 = False
        # 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 os
            baseName = os.path.basename(sys.argv[0])
            baseName, ext = os.path.splitext(baseName)
            if ext not in ('.py', '.pyc'):
                baseName = baseName + ext
        interactive = False
        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)
def __init__ ( self , screenName = None , baseName = None , className = 'Tk' , useTk = True , sync = False , use = None ) : self . master = None self . children = { } self . _tkloaded = False # 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 os baseName = os . path . basename ( sys . argv [ 0 ] ) baseName , ext = os . path . splitext ( baseName ) if ext not in ( '.py' , '.pyc' ) : baseName = baseName + ext interactive = False 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 )