def _Quit2(self): """ The end of the quit procedure ;-) """ BaseNavigatorApp._Quit2(self) # Process the last pending events self.ProcessPendingEvents() for obj_name in self.dialogs + self.windows: try: win = getattr(self, obj_name) win.Destroy() except: pass