Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fixed type error that originated from pygame.Surface() by casting inp…
…ut to int
  • Loading branch information
LeaStef committed Apr 22, 2025
commit 97fcd6ad6962f112af30c9c88dedeb5243092318
2 changes: 1 addition & 1 deletion abr_control/interfaces/pygame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down