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

Comments

  • 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.

Sign In or Register to comment.