class ExampleText(TextEventMixin, tk.ScrolledText):
    """Adapted from: http://code.activestate.com/recipes/464635
    """
    def __init__(self, root, *args, **kw):
        tk.ScrolledText.__init__(self, root, *args, **kw)
        self.root = root
        self.spellcheck = Spellcheck(self)
        self.spellcheck.spellcheck_enabled = True
        self._init_textevent_mixin()

    def fire_on_textevent(self):
        self.root.update_wordcount()
        self.spellcheck.run()
 def __init__(self, root, *args, **kw):
     tk.ScrolledText.__init__(self, root, *args, **kw)
     self.root = root
     self.spellcheck = Spellcheck(self)
     self.spellcheck.spellcheck_enabled = True
     self._init_textevent_mixin()