def run(self):
        """Ejecute the main loop."""

        self.toplevel.protocol("WM_DELETE_WINDOW", self.__on_window_close)
        self.toplevel.mainloop()
def run ( self ) : self . toplevel . protocol ( "WM_DELETE_WINDOW" , self . __on_window_close ) self . toplevel . mainloop ( )
Ejecute the main loop.