Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 [Python] How do you change the mouse cursor?
Index -> Programming, Python -> Python Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
BigBear




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
DtY




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Python -> Python Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: