def onexit(self, event=None): flightlog.close() if platform!='darwin' or self.w.winfo_rooty()>0: # http://core.tcl.tk/tk/tktview/c84f660833546b1b84e7 config.set('geometry', '+{1}+{2}'.format(*self.w.geometry().split('+'))) config.close() self.session.close() self.w.destroy()
def onexit(self, event=None): if platform != 'darwin' or self.w.winfo_rooty( ) > 0: # http://core.tcl.tk/tk/tktview/c84f660833546b1b84e7 config.set('geometry', '+{1}+{2}'.format(*self.w.geometry().split('+'))) config.close() self.session.close() self.w.destroy()
def onexit(self, event=None): hotkeymgr.unregister() flightlog.close() if platform != "darwin" or self.w.winfo_rooty() > 0: # http://core.tcl.tk/tk/tktview/c84f660833546b1b84e7 config.set("geometry", "+{1}+{2}".format(*self.w.geometry().split("+"))) config.close() self.updater.close() self.session.close() self.w.destroy()
def onexit(self, event=None): if platform!='darwin' or self.w.winfo_rooty()>0: # http://core.tcl.tk/tk/tktview/c84f660833546b1b84e7 config.set('geometry', '+{1}+{2}'.format(*self.w.geometry().split('+'))) self.w.withdraw() # Following items can take a few seconds, so hide the main window while they happen hotkeymgr.unregister() monitor.close() eddn.close() self.updater.close() self.session.close() config.close() self.w.destroy()
def onexit(self, event=None): if platform!='darwin' or self.w.winfo_rooty()>0: # http://core.tcl.tk/tk/tktview/c84f660833546b1b84e7 config.set('geometry', '+{1}+{2}'.format(*self.w.geometry().split('+'))) self.w.withdraw() # Following items can take a few seconds, so hide the main window while they happen protocolhandler.close() hotkeymgr.unregister() dashboard.close() monitor.close() plug.notify_stop() self.updater.close() companion.session.close() config.close() self.w.destroy()
def onexit(self, event=None): print("on exit!") if platform != 'darwin' or self.w.winfo_rooty( ) > 0: # http://core.tcl.tk/tk/tktview/c84f660833546b1b84e7 print(f"Windows save geo {self.w.geometry()}") config.set('geometry', '+{1}+{2}'.format(*self.w.geometry().split('+'))) self.w.withdraw( ) # Following items can take a few seconds, so hide the main window while they happen monitor.close() plug.notify_stop() config.close() self.w.destroy()
def onexit(self, event=None): config.set('geometry', '+{1}+{2}'.format(*self.w.geometry().split('+'))) config.close() self.session.close() self.w.destroy()