code: def quit(self):
          
          # Stop an open "close tab" dialog from obstructing a quit
          response = self.run() == Gtk.ResponseType.YES
          self.destroy()
          # Keep Guake focussed after dismissing tab-close prompt
          # if tab == -1:
          #     self.window.present()
          return response
docs: Run the "are you sure" dialog for quitting Guake