pygame_gui_examples icon indicating copy to clipboard operation
pygame_gui_examples copied to clipboard

camera_window_test.py doesn't work

Open gldlv opened this issue 4 years ago • 0 comments

Hello, one of the example doesn't work

I don't have time to debug it or to make a PR so I'll just report here:

guillaume@A320MA:~/GitHub/pygame_gui_examples$ python camera_window_test.py 
pygame 2.0.1 (SDL 2.0.14, Python 3.8.5)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "camera_window_test.py", line 69, in <module>
    CameraWindow(cam_window_rect, cam_id, cam_names[cam_id], manager)
  File "camera_window_test.py", line 30, in __init__
    self.camera = pygame.camera.Camera(camera_id, (160, 120))
TypeError: argument 1 must be str, not int

gldlv avatar May 04 '21 15:05 gldlv