old_version/gui.py
def character_limit(self) -> None:
        """
        Checks if user's input is valid and changes invalid characters for blank string or previous valid character.
        :return: None
        """
        if len(self.text) > 0:
            if len(self.text) == 1 and not self.input_validation(self.text[0]):
                self.text = ''
            else:
                if self.input_validation(self.text[-1]):
                    self.text = self.text[-1]
                else:
                    self.text = self.text[-2]
        return None

        Checks if user's input is valid and changes invalid characters for blank string or previous valid character.
        :return: None
        
Checks if user's input is valid and changes invalid characters for blank string or previous valid character.
Checks if user ' s input is valid and changes invalid characters for blank string or previous valid character .
def character_limit(self) -> None:
        if len(self.text) > 0:
            if len(self.text) == 1 and not self.input_validation(self.text[0]):
                self.text = ''
            else:
                if self.input_validation(self.text[-1]):
                    self.text = self.text[-1]
                else:
                    self.text = self.text[-2]
        return None
def character_limit ( self ) -> None : if len ( self . text ) > 0 : if len ( self . text ) == 1 and not self . input_validation ( self . text [ 0 ] ) : self . text = '' else : if self . input_validation ( self . text [ - 1 ] ) : self . text = self . text [ - 1 ] else : self . text = self . text [ - 2 ] return None
Checks if user's input is valid and changes invalid characters for blank string or previous valid character.
Checks if user ' s input is valid and changes invalid characters for blank string or previous valid character .
"""
        Checks if user's input is valid and changes invalid characters for blank string or previous valid character.
        :return: None
        """
None
self