From 97fcd6ad6962f112af30c9c88dedeb5243092318 Mon Sep 17 00:00:00 2001 From: Lea Steffen Date: Tue, 22 Apr 2025 12:03:14 -0400 Subject: [PATCH] fixed type error that originated from pygame.Surface() by casting input to int --- abr_control/interfaces/pygame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abr_control/interfaces/pygame.py b/abr_control/interfaces/pygame.py index 13b884a6..00d8032e 100644 --- a/abr_control/interfaces/pygame.py +++ b/abr_control/interfaces/pygame.py @@ -83,7 +83,7 @@ def __init__( # create transparent arm lines self.lines_base = [] for ii, L in enumerate(self.L): - self.lines_base.append(pygame.Surface((L, line_width), pygame.SRCALPHA, 32)) + self.lines_base.append(pygame.Surface((int(L), line_width), pygame.SRCALPHA, 32)) # color in transparent arm lines self.lines_base[ii].fill(line_color)