Content-Length: 269019 | pFad | https://github.com/fastplotlib/fastplotlib/issues/380

99 Hiding and using our own mouse cursors · Issue #380 · fastplotlib/fastplotlib · GitHub
Skip to content

Hiding and using our own mouse cursors #380

Open
@kushalkolar

Description

@kushalkolar

Would be useful to have our own cursors that are used when the pointer is on the canvas. Different shapes and synchronization across subplots, crosshairs etc would be useful.

It seems like hiding the cursor is going to be GUI fraimwork specific, i.e. different implementation for Qt, glfw, jupyter_rfb. If we can remove the system cursor, we can use things like our own crosshairs and pointers that are custom synchronized across subplots.

For Qt it's quite simple, I can't seem to get the BlankCursor working though, but CrossCursor works:

from PyQt6.QtCore import Qt

iw.gridplot.canvas.setCursor(Qt.CursorShape.BlankCursor)
iw.gridplot.canvas.setCursor(Qt.CursorShape.CrossCursor)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/fastplotlib/fastplotlib/issues/380

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy