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)
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)