Computer Science Canada

[Python] How do you change the mouse cursor?

Author:  BigBear [ Tue May 19, 2009 8:50 am ]
Post subject:  [Python] How do you change the mouse cursor?

When you use pygame and initsalize everything it has a default small black cursor how do you change that to be an image?

Author:  DtY [ Tue May 19, 2009 6:35 pm ]
Post subject:  RE:[Python] How do you change the mouse cursor?

You can use: http://www.pygame.org/docs/ref/mouse.html#pygame.mouse.set_cursor (The comments should help). However, this will only give you monochrome cursors, another common method is to hide the cursor, and then draw a sprite wherever the mouse is.


: