adjusted display size for pygame

This commit is contained in:
Simon Pirkelmann 2019-04-14 22:23:34 +02:00
parent f0f846dc04
commit 5e7f228869

View File

@ -1,11 +1,15 @@
import socket
import pygame
rc_socket = socket.socket()
rc_socket.connect(('192.168.4.1', 1234)) # connect to robot
pygame.init()
pygame.display.set_mode()
pygame.display.set_mode((640, 480))
rc_socket = socket.socket()
try:
rc_socket.connect(('192.168.4.1', 1234)) # connect to robot
except socket.error:
print("could not connect to socket")
while True:
events = pygame.event.get()