FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-escpos/examples/software_barcode.py at master · python-escpos/python-escpos · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python-escpos
/
python-escpos
Public
Notifications
You must be signed in to change notification settings
Fork
316
Star
1.3k
Code
Issues
60
Pull requests
12
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-escpos
/
examples
/
software_barcode.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
10 lines (7 loc) · 297 Bytes
Breadcrumbs
python-escpos
/
examples
/
software_barcode.py
Copy path
File metadata and controls
10 lines (7 loc) · 297 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
"""Example file for software barcodes."""
from
escpos
.
printer
import
Usb
# Adapt to your needs
p
=
Usb
(
0x0416
,
0x5011
,
profile
=
"POS-5890"
)
# Some software barcodes
p
.
barcode
(
"Hello"
,
"code128"
,
width
=
2
,
force_software
=
"bitImageRaster"
)
p
.
barcode
(
"1234"
,
"code39"
,
width
=
2
,
force_software
=
True
)
Back
|
FazBrowse Home
|
New Git URL