Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Importing mouse error

hello pygaze users, i want to use the mouse import to make my experiment, but what is the correct sintaxis?. when i wan run it the console show me this


  • The problem seems to be that you're trying to create a Mouse instance before creating an active Display. The following minimal example illustrates the correct order:

    from pygaze.display import Display
    from pygaze.mouse import Mouse
    disp = Display()
    my_mouse = Mouse()

    If that doesn't work, please let us know!

  • yeah, i import like that but the error persist.

  • As I said in my previous comment: It's not the import, it the initialisation. If you simply copy the code from my previous message, you should be fine.

Sign In or Register to comment.