CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

Control-z and Control-Y doesn't work in ctktextbox

Open vihaanmody1 opened this issue 1 year ago • 5 comments

I am using CustomTkinter to make my own application. I have created a textbox in the program. It lets me to copy and paste but not to redo or undo.

I have tried solutions online but they are for tkinter and do not work in customtkinter. My whole point of using customtkinter is for better looking GUIs. Below is the following code for making a textbox I used.

self.Entry = CTk.CTkTextbox(self, width=816, height=420, font=self.FontList)
self.Entry.grid(row=1, column=0)

Thank You

Vihaan Mody

vihaanmody1 avatar Oct 11 '23 22:10 vihaanmody1

@Vihaanmody21 Duplicate of https://github.com/TomSchimansky/CustomTkinter/discussions/2010

Akascape avatar Oct 13 '23 15:10 Akascape

The solution doesn't work for me. I already saw this question.

vihaanmody1 avatar Oct 13 '23 22:10 vihaanmody1

@Vihaanmody21 Duplicate of #2010

redo doesn't work

vihaanmody1 avatar Oct 13 '23 22:10 vihaanmody1

I don't know if you already solve you issue, but to redo type Ctrl + Y instead of Ctrl + Shift + Z (as in others text editors), with the undo=True in the CTkTextbox declaration.

EmersonVilar avatar Nov 30 '23 18:11 EmersonVilar

Uhm.. Actually i've tried redo too. But it paste the clipboard text instead. Plus, it looks like the undo is binded by default when i add undo=True, but when i'm back to my initial text typing Ctrl-z and i undo once more, it completely delete anything in my widget...

racine890 avatar Apr 03 '24 18:04 racine890