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

Fix barcodes in GUI #23

Merged
merged 4 commits into from
Apr 27, 2024
Merged

Fix barcodes in GUI #23

merged 4 commits into from
Apr 27, 2024

Conversation

maresb
Copy link
Contributor

@maresb maresb commented Apr 27, 2024

No description provided.

@maresb maresb merged commit 65fcf51 into labelle-org:main Apr 27, 2024
6 checks passed
@maresb maresb deleted the fix-gui-barcode branch April 27, 2024 18:02
@@ -25,6 +25,11 @@ def __init__(self, content: str, barcode_type: str | None):
self.barcode_type = barcode_type or DEFAULT_BARCODE_TYPE

def render(self, context: RenderContext) -> Image.Image:
if self.barcode_type == "code128" and self.content == "":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest you use the global constant to default type, I stead of the string value, as it might change in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants