Skip to content

motion_notify_event from backend_kivy.py is not found? #81

Open
@chrisInTheCode

Description

Hi! I am relatively newer to python (and certainly kivy and matplotlib) and am working on a project. I am trying to use a matplotlib graph within kivy, which seems like it works fine - except for that I'm getting an internal error inside of kivy matplotlib backend that I cannot trace back to my own code.

Here is the error I am getting:

kivy\garden\matplotlib\backend_kivy.py", line 1204, in _on_mouse_pos self.motion_notify_event(x, y, guiEvent=None) ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'FigureCanvasKivyAgg' object has no attribute 'motion_notify_event'. Did you mean: 'enter_notify_event'?

Now, if I try to trace back and find motion_notify_event, the farthest back I can get is the _on_mouse_pos() method within backend_kivy.py. It seems to have a definition for leave_notify_event and enter_notify_event, but not one for motion_notify_event. There are several references throughout backend_kivy.py, but I cannot find where it ever provides a definition for how to handle it.

Is this a known bug within backend_kivy? Am I just missing something on my side to handle this myself? I know this is not much to go on, so just let me know what else I need to provide. I can't trace it back to anywhere in my code and it is unreasonable to put the entire project here. Thanks for any help or ideas!

Versions:
python==3.11.5
Kivy==2.2.1
kivy-deps.angle==0.3.3
kivy-deps.glew==0.3.1
kivy-deps.sdl2==0.6.0
Kivy-Garden==0.1.5
kivy-matplotlib-widget==0.6.1
matplotlib==3.8.0
matplotlib-label-lines==0.7.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions