Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Hiding and using our own mouse cursors #380

Copy link
Copy link
Open
@kushalkolar

Description

@kushalkolar
Issue body actions

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 framework 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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.