(self, parent, title='', *, _htest=False, _utest=False)
Show the tabbed dialog for user configuration.

        Args:
            parent - parent of this dialog
            title - string which is the title of this popup dialog
            _htest - bool, change box location when running htest
            _utest - bool, don't wait_window when running unittest

        Note: Focus set on font page fontlist.

        Methods:
            create_widgets
            cancel: Bound to DELETE_WINDOW protocol.
Show the tabbed dialog for user configuration.
Show the tabbed dialog for user configuration .
def __init__(self, parent, title='', *, _htest=False, _utest=False):
        """Show the tabbed dialog for user configuration.

        Args:
            parent - parent of this dialog
            title - string which is the title of this popup dialog
            _htest - bool, change box location when running htest
            _utest - bool, don't wait_window when running unittest

        Note: Focus set on font page fontlist.

        Methods:
            create_widgets
            cancel: Bound to DELETE_WINDOW protocol.
        """
        Toplevel.__init__(self, parent)
        self.parent = parent
        if _htest:
            parent.instance_dict = {}
        if not _utest:
            self.withdraw()

        self.title(title or 'IDLE Preferences')
        x = parent.winfo_rootx() + 20
        y = parent.winfo_rooty() + (30 if not _htest else 150)
        self.geometry(f'+{x}+{y}')
        # Each theme element key is its display name.
        # The first value of the tuple is the sample area tag name.
        # The second value is the display name list sort index.
        self.create_widgets()
        self.resizable(height=FALSE, width=FALSE)
        self.transient(parent)
        self.protocol("WM_DELETE_WINDOW", self.cancel)
        self.fontpage.fontlist.focus_set()
        # XXX Decide whether to keep or delete these key bindings.
        # Key bindings for this dialog.
        # self.bind('<Escape>', self.Cancel) #dismiss dialog, no save
        # self.bind('<Alt-a>', self.Apply) #apply changes, save
        # self.bind('<F1>', self.Help) #context help
        # Attach callbacks after loading config to avoid calling them.
        tracers.attach()

        if not _utest:
            self.grab_set()
            self.wm_deiconify()
            self.wait_window()
def __init__ ( self , parent , title = '' , * , _htest = False , _utest = False ) : Toplevel . __init__ ( self , parent ) self . parent = parent if _htest : parent . instance_dict = { } if not _utest : self . withdraw ( ) self . title ( title or 'IDLE Preferences' ) x = parent . winfo_rootx ( ) + 20 y = parent . winfo_rooty ( ) + ( 30 if not _htest else 150 ) self . geometry ( f'+{x}+{y}' ) # Each theme element key is its display name. # The first value of the tuple is the sample area tag name. # The second value is the display name list sort index. self . create_widgets ( ) self . resizable ( height = FALSE , width = FALSE ) self . transient ( parent ) self . protocol ( "WM_DELETE_WINDOW" , self . cancel ) self . fontpage . fontlist . focus_set ( ) # XXX Decide whether to keep or delete these key bindings. # Key bindings for this dialog. # self.bind('<Escape>', self.Cancel) #dismiss dialog, no save # self.bind('<Alt-a>', self.Apply) #apply changes, save # self.bind('<F1>', self.Help) #context help # Attach callbacks after loading config to avoid calling them. tracers . attach ( ) if not _utest : self . grab_set ( ) self . wm_deiconify ( ) self . wait_window ( )