Google News
logo
Tkinter - Interview Questions
How to stop copy, paste, and backspace in text widget in tkinter?
The Text widget accepts multiline user input, where you can type text and perform operations like copying, pasting, and deleting. There are certain ways to disable the shortcuts for various operations on a Text widget.
 
In order to disable copy, paste and backspace in a Text widget, you’ve to bind the event with an event handler and return break using lambda keyword in python.
Advertisement