MyreMylar / pygame_gui_examples

Some examples of how to use pygame_gui
137 stars 42 forks source link

camera_window_test.py doesn't work #8

Open GDelevoye opened 3 years ago

GDelevoye commented 3 years ago

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