def question_message(self, widget, message, cb = None):
        self.attention = "QUESTION: %s" % message
        messagedialog = gtk.MessageDialog(widget, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_QUESTION, gtk.BUTTONS_YES_NO, message)
        messagedialog.connect("delete-event", lambda w, e: w.hide() or True)
        if cb:
            messagedialog.connect("response", cb)

        messagedialog.set_default_response(gtk.RESPONSE_YES)
        messagedialog.show()
        messagedialog.present()
        return messagedialog
dataset/ETHPy150Open lionheart/TimeTracker-Linux/libs/Signals.py/uiSignalHelpers.question_message/original