Bienvenue, Invité. Merci de vous connecter ou de vous inscrire.
Avez-vous perdu votre e-mail d'activation ?

Auteur Sujet: bug Rectangle.intersects() binding python 1.3  (Lu 1878 fois)

0 Membres et 1 Invité sur ce sujet

lemarsu

  • Newbie
  • *
  • Messages: 1
    • Voir le profil
    • E-mail
bug Rectangle.intersects() binding python 1.3
« le: Janvier 15, 2014, 11:20:06 pm »
import sfml as sf

rect1 = sf.Rectangle((0, 0), (50, 50))
rect2 = sf.Rectangle((250, 250), (50, 50))

print(rect1.intersects(rect2))


---------ERROR--------


Traceback (most recent call last):
  File "D:\code\python\sfml\tuto\test.py", line 6, in <module>
    print(rect1.intersects(rect2))
  File "graphics.pyx", line 188, in sfml.graphics.Rectangle.intersects (src/sfml\graphics.cpp:4442)
  File "graphics.pyx", line 97, in sfml.graphics.Rectangle.__init__ (src/sfml\graphics.cpp:2420)
TypeError: __init__() takes at most 2 positional arguments (4 given)
[Finished in 0.2s]