Skip to content

Commit 455d4f5

Browse files
committed
include '%' (modulus) as allowed character in NumberValidator
1 parent e2830d6 commit 455d4f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GSASII/GSASIIctrlGUI.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,11 +756,11 @@ def __init__(self, typ, positiveonly=False, xmin=None, xmax=None,exclLim=[False,
756756
if self.typ == int and self.positiveonly:
757757
self.validchars = '0123456789'
758758
elif self.typ == int:
759-
self.validchars = '0123456789+-'
759+
self.validchars = '0123456789+-%'
760760
elif self.typ == float:
761761
# allow for above and sind, cosd, sqrt, tand, pi, and abbreviations
762762
# also addition, subtraction, division, multiplication, exponentiation
763-
self.validchars = '0123456789.-+eE/cosindcqrtap()*,'
763+
self.validchars = '0123456789.-+eE/cosindcqrtap()*,%'
764764
else:
765765
self.validchars = None
766766
return

0 commit comments

Comments
 (0)