(self, parent, title=None, *, _htest=False, _utest=False)
Create popup, do not return until tk widget destroyed.

        parent - parent of this dialog
        title - string which is title of popup dialog
        _htest - bool, change box location when running htest
        _utest - bool, don't wait_window when running unittest
Create popup, do not return until tk widget destroyed.
Create popup do not return until tk widget destroyed .
def __init__(self, parent, title=None, *, _htest=False, _utest=False):
        """Create popup, do not return until tk widget destroyed.

        parent - parent of this dialog
        title - string which is title of popup dialog
        _htest - bool, change box location when running htest
        _utest - bool, don't wait_window when running unittest
        """
        Toplevel.__init__(self, parent)
        self.configure(borderwidth=5)
        # place dialog below parent if running htest
        self.geometry("+%d+%d" % (
                        parent.winfo_rootx()+30,
                        parent.winfo_rooty()+(30 if not _htest else 100)))
        self.bg = "#bbbbbb"
        self.fg = "#000000"
        self.create_widgets()
        self.resizable(height=False, width=False)
        self.title(title or
                   f'About IDLE {version} ({build_bits()} bit)')
        self.transient(parent)
        self.grab_set()
        self.protocol("WM_DELETE_WINDOW", self.ok)
        self.parent = parent
        self.button_ok.focus_set()
        self.bind('<Return>', self.ok)  # dismiss dialog
        self.bind('<Escape>', self.ok)  # dismiss dialog
        self._current_textview = None
        self._utest = _utest

        if not _utest:
            self.deiconify()
            self.wait_window()
def __init__ ( self , parent , title = None , * , _htest = False , _utest = False ) : Toplevel . __init__ ( self , parent ) self . configure ( borderwidth = 5 ) # place dialog below parent if running htest self . geometry ( "+%d+%d" % ( parent . winfo_rootx ( ) + 30 , parent . winfo_rooty ( ) + ( 30 if not _htest else 100 ) ) ) self . bg = "#bbbbbb" self . fg = "#000000" self . create_widgets ( ) self . resizable ( height = False , width = False ) self . title ( title or f'About IDLE {version} ({build_bits()} bit)' ) self . transient ( parent ) self . grab_set ( ) self . protocol ( "WM_DELETE_WINDOW" , self . ok ) self . parent = parent self . button_ok . focus_set ( ) self . bind ( '<Return>' , self . ok ) # dismiss dialog self . bind ( '<Escape>' , self . ok ) # dismiss dialog self . _current_textview = None self . _utest = _utest if not _utest : self . deiconify ( ) self . wait_window ( )