self.char_count.configure(text='%s characters remaining' % remaining)
if __name__ == '__main__':
    root = tk.Tk()
Example(root).pack(side='top', fill='both', expand=True)
root.mainloop()
Tkinter: set StringVar after <Key> event, including the key pressed