Ignore:
Timestamp:
May 20, 2021 12:07:05 PM (5 months ago)
Author:
toby
Message:

implement european decimal (,) for grid fraction editor; use it for all columns in Atoms & Layersgrids; beginning of fullrmc edits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrlGUI.py

    r4909 r4911  
    48094809        self.nextval = self.startValue
    48104810        val = self._tc.GetValue().lower().strip()
     4811        val = val.replace(',','.') # allow , for decimal
    48114812        if val != str(self.startValue):
    48124813            changed = True
     
    48554856    def OnChar(self, evt):
    48564857        key = evt.GetKeyCode()
    4857         if key < 32 or key >= 127:
     4858        if key < 32 or key >= 127: # outside printable ascii range; needed for backspace etc.
    48584859            evt.Skip()
    4859         elif chr(key).lower() in '.+-*/0123456789cosind()':
     4860        elif chr(key).lower() in '.+-*/0123456789cosind(),':
    48604861            evt.Skip()
    48614862        else:
Note: See TracChangeset for help on using the changeset viewer.