def spacesCount(text):
            return len(text) - len(text.rstrip(' '))
def __init__(self, master=None, **kwargs):
        ScrolledText.__init__(self, master=None, **kwargs)
        Diacritical.__init__(self)