I'm sorry if this is a stupid question, but I'm not sure what I am doing wrong here. The undo and redo worked perfectly fine on Linux but it will not work on Windows. I tried to create a binding manually (as seen below) but that also didn't solve the problem. I try this exact code below and the redo command does not work. I have researched the problem, but I only find the binding solution, which I have already tried.
import tkinter as tk
class TextThing():
def __init__(self, master):
self.text = tk.Text(undo=True, maxundo=-1, autoseparators=True)
self.bindings()
self.text.pack()
def bindings(self):
self.text.bind('<Control-Shift-z>', self.text.edit_redo)
if __name__ == '__main__':
master = tk.Tk()
text_thing = TextThing(master)
master.mainloop()