diff --git a/configs/sim/axis/plasma/plasmac2/plasmac2.py b/configs/sim/axis/plasma/plasmac2/plasmac2.py index f9a71b2271b..bc35db04737 100644 --- a/configs/sim/axis/plasma/plasmac2/plasmac2.py +++ b/configs/sim/axis/plasma/plasmac2/plasmac2.py @@ -2498,7 +2498,7 @@ def user_button_setup(): elif bCode.strip() == 'cut-type' and not 'cut-type' in buttonCodes: bName = bName.split(',') if len(bName) == 1: - text = _('Pierce\Only') if '\\' in bName[0] else _('Pierce Only') + text = _('Pierce\\Only') if '\\' in bName[0] else _('Pierce Only') bName.append(text) outCode = {'code':'cut-type', 'text':bName} elif bCode.strip() == 'single-cut' and not 'single-cut' in buttonCodes: diff --git a/nc_files/holecircle.py b/nc_files/holecircle.py index 2dabca89509..88023a3c8b5 100644 --- a/nc_files/holecircle.py +++ b/nc_files/holecircle.py @@ -27,9 +27,9 @@ def ui(): f.grid(row=0, column=1, sticky="nw") b.grid(row=1, column=0, columnspan=2, sticky="ne") - validate_float = "expr {[regexp {^-?([0-9]+(\.[0-9]*)?|\.[0-9]+|)$} %P]}" + validate_float = "expr {[regexp {^-?([0-9]+(\\.[0-9]*)?|\\.[0-9]+|)$} %P]}" validate_int = "expr {[regexp {^-?([0-9]+|)$} %P]}" - validate_posfloat = "expr {[regexp {^?([0-9]+(\.[0-9]*)?|\.[0-9]+|)$} %P]}" + validate_posfloat = "expr {[regexp {^?([0-9]+(\\.[0-9]*)?|\\.[0-9]+|)$} %P]}" validate_posint = "expr {[regexp {^([0-9]+|)$} %P]}" def posfloatentry(f, v): var = tkinter.DoubleVar(f)