FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-escpos/examples/barcodes.py at development · 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
315
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
/
barcodes.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (8 loc) · 256 Bytes
Breadcrumbs
python-escpos
/
examples
/
barcodes.py
Copy path
File metadata and controls
11 lines (8 loc) · 256 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
11
from
escpos
.
printer
import
Usb
# Adapt to your needs
p
=
Usb
(
0x0416
,
0x5011
,
profile
=
"POS-5890"
)
# Print software and then hardware barcode with the same content
p
.
soft_barcode
(
'code39'
,
'123456'
)
p
.
text
(
'
\n
'
)
p
.
text
(
'
\n
'
)
p
.
barcode
(
'123456'
,
'CODE39'
)
Back
|
FazBrowse Home
|
New Git URL