Esempio n. 1
0
 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)
Esempio n. 2
0
 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)