e.g. barcode.default_writer_options['quiet_zone'] = 10 isn´t working properly #41

Open
opened 2019-06-13 11:35:02 +02:00 by mobsean · 1 comment
mobsean commented 2019-06-13 11:35:02 +02:00 (Migrated from github.com)

Hello,
I´m trying to set the quiet_zone very low. e.g. 0.6.

I fixed the order in the base.py render function:
Line 105 and 106:

Removed this:
options = Barcode.default_writer_options.copy()
options.update(writer_options or {})
Instead I added this:
writer_options.update(Barcode.default_writer_options)
options = writer_options.copy()

Now its working. I´m new to github. Dont know how to make a pull request

Hello, I´m trying to set the quiet_zone very low. e.g. 0.6. I fixed the order in the base.py render function: Line 105 and 106: Removed this: options = Barcode.default_writer_options.copy() options.update(writer_options or {}) Instead I added this: writer_options.update(Barcode.default_writer_options) options = writer_options.copy() Now its working. I´m new to github. Dont know how to make a pull request
goog commented 2019-07-17 05:12:25 +02:00 (Migrated from github.com)

hi, which area is the quiet_zone

hi, which area is the quiet_zone
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
WhyNotHugo/python-barcode#41
No description provided.