(self, dec_repr)
return self.from_int(int(valstr))
Convert str in decimal representation to integer.
Convert str in decimal representation to integer.
Convert str in decimal representation to integer .
def from_str(self, dec_repr):
        """Convert str in decimal representation to integer."""
        valstr = dec_repr.strip(BLANKS)
        if set(valstr) - set(tk.DIGITS):
            raise ValueError(
                'string %r contains non-digits, cannot convert to Integer.' %
                (valstr,)
            )
        return self.from_int(int(valstr))
def from_str ( self , dec_repr ) : valstr = dec_repr . strip ( BLANKS ) if set ( valstr ) - set ( tk . DIGITS ) : raise ValueError ( 'string %r contains non-digits, cannot convert to Integer.' % ( valstr , ) ) return self . from_int ( int ( valstr ) )