import sfml as sf
r1 = sf.Rectangle((0,0), (5,5))
r2 = sf.Rectangle((4,4), (5,5))
r1.intersects(r2)
python test_case.py
Traceback (most recent call last):
File "test.py", line 7, in <module>
r1.intersects(r2)
File "graphics.pyx", line 188, in sfml.graphics.Rectangle.intersects (src/sfml/graphics.cpp:4717)
File "graphics.pyx", line 97, in sfml.graphics.Rectangle.__init__ (src/sfml/graphics.cpp:2489)
TypeError: __init__() takes at most 2 positional arguments (4 given)
Test case:
test_case.py:
import sfml as sf
r1 = sf.Rectangle((0,0), (5,5))
r2 = sf.Rectangle((4,4), (5,5))
r1.intersects(r2)
python test_case.py intersects( r2) Rectangle. intersects (src/sfml/ graphics. cpp:4717) Rectangle. __init_ _ (src/sfml/ graphics. cpp:2489)
Traceback (most recent call last):
File "test.py", line 7, in <module>
r1.
File "graphics.pyx", line 188, in sfml.graphics.
File "graphics.pyx", line 97, in sfml.graphics.
TypeError: __init__() takes at most 2 positional arguments (4 given)