def run(self): result = super(EntryDialog, self).run() if result == gtk.RESPONSE_OK: text = self.entry.get_text() else: text = None return text