Example #1
0
    def showState(self):
        err = CNC.vars["errline"]
        if err:
            msg = "Last error: %s\n" % (CNC.vars["errline"])
        else:
            msg = ""

        state = CNC.vars["state"]
        msg += ERROR_CODES.get(state, "No info available.\nPlease contact the author.")
        tkMessageBox.showinfo("State: %s" % (state), msg, parent=self)
Example #2
0
    def showState(self):
        err = CNC.vars["errline"]
        if err:
            msg = _("Last error: %s\n") % (CNC.vars["errline"])
        else:
            msg = ""

        state = CNC.vars["state"]
        msg += ERROR_CODES.get(
            state, _("No info available.\nPlease contact the author."))
        tkMessageBox.showinfo(_("State: %s") % (state), msg, parent=self)