Does anyone know how to ignore Tkinter events in a GUI through python?
I’m trying to block the default (class-level, I guess) binding of a ROOT object displayed in a GUI. I found effbot.org/tkinterbook/tkinter-e … ndings.htm which explains that the event handler needs to return the string “break” to do so. But this does not work for me when my event handler is called via TPyDispatcher. Looking at TPyDispatcher, it does return a generic PyObject* from its fCallable, so this doesn’t look hopeless.
A minimal application demonstrating the “problem” is attached.
The goal is to prevent, e.g., movement of the TGaxis drawn in the canvas using the mouse buttons.
What am I doing wrong?
test_gui2.py (1.42 KB)