Adding/overiding callbacks to VisualizerWithEditing #7399
lee-deraud
started this conversation in
General
Replies: 1 comment
-
|
UPDATE: As it turns out, VisualizerWithEditting is not a child class of VisualizerWithKeyCallback: I guess that made too much sense. They're both child classes of Visualizer, although it seems like big chunks got duplicated between the two. Second try involved a new child class with multiple inheritance from V-WithEditting and V-WithKeyCallbacks, as per an exmple I saw here: results in: Maybe this was a bad idea. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've got a simple BFMI app using the VisualizerWithEditing class, and I'd like to remove/override some of the default key bindings. I have no problem with similar code in the VisualizerWithKeyCallback class, but I'd just as soon not have to reinvent the whole point-picking wheel that the with-edit class provides. Working under the assumption that VisualizerWithEditing is a child class of VisualizerWithKeyCallback, I tried using the 'super()' function and got this error:
The function in question is NOT inside a class definition, if that matters. (And yes, I'm relatively new to Python, thanks for asking.)
Suggestions?
Beta Was this translation helpful? Give feedback.
All reactions