pygame is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

pygame / pygame http://pygame.org/

Clone this repository (size: 15.4 MB): HTTPS / SSH
hg clone https://bitbucket.org/pygame/pygame
hg clone ssh://hg@bitbucket.org/pygame/pygame

Issues

#55 cursors,compile seems to be broken

Reported by illume

Saul Spatz, 2010-11-03 18:32:36 -0700

>>> cursor = pygame.cursors.compile(pygame.cursors.textmarker_strings)
>>> pygame.mouse.set_cursor(*cursor)
Traceback (most recent call last):
  File "<string>", line 1, in <fragment>
TypeError: function takes exactly 4 arguments (2 given)

Status: open Responsible: illume Type: bug Priority: trivial
Milestone: 1.9.2 Component: cursors Version: 1.9

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 illume

    written

    • Changed milestone from nothing to 1.9.2.
    • Changed status from new to open.

    I think the documentation is incorrect? Perhaps.

  2. #2 illume

    written

    Hi,

    the code given definitely does not work.

    It is an example from: http://pygame.org/docs/ref/cursors.html#pygame.cursors.compile

    I checked through the revision history, and I can't see where the lib/cursors.py implementation ever returned 4 elements. That is why I guessed the documentation to be wrong.

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?