def safe_message_dialog(self, markup, msgtype=gtk.MESSAGE_ERROR):
        gtk.gdk.threads_enter()
        mbox = gtk.MessageDialog(type=msgtype, buttons=gtk.BUTTONS_OK)
        mbox.set_markup(markup)
        mbox.run()
        mbox.destroy()
        gtk.gdk.threads_leave()
Shows a popup message (avoids a threading pitfall here.)
dataset/ETHPy150Open thesamet/webilder/src/webilder/progress_dialog.py/ProgressThread.safe_message_dialog