def dialog_response(self, dialog, response_id): if response_id == gtk.RESPONSE_OK: text = dialog.entry.get_text() else: text = None dialog.destroy() self.responseq.put(text)
def prompt_response(self, dialog, response_id): dialog.destroy() if response_id == gtk.RESPONSE_DELETE_EVENT: self.responseq.put(None) else: self.responseq.put(response_id)