Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed .getsize to .getlength for compatibility with Pillow 10 #78

Merged
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
6 changes: 3 additions & 3 deletions seqlike/draw_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ def draw_alignment(
font = find_font(boxheight)
offset = -1
if show_names:
offset += font.getsize(max([m.name[None:label_width] for m in aligned], key=len))[0] + 1
offset += int(font.getlength(max([m.name[None:label_width] for m in aligned], key=len)) + 1)
if show_ids:
offset += font.getsize(max([m.id[None:label_width] for m in aligned], key=len))[0] + 1
offset += int(font.getlength(max([m.id[None:label_width] for m in aligned], key=len)) + 1)
if show_descriptions:
offset += font.getsize(max([m.description[None:label_width] for m in aligned], key=len))[0] + 1
offset += int(font.getlength(max([m.description[None:label_width] for m in aligned], key=len)) + 1)
else:
font, offset = None, 0

Expand Down
Loading