qltool 0.2.2__tar.gz → 0.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qltool-0.2.2 → qltool-0.2.4}/.bumpversion.cfg +1 -1
- {qltool-0.2.2 → qltool-0.2.4}/PKG-INFO +2 -2
- {qltool-0.2.2 → qltool-0.2.4}/pyproject.toml +2 -2
- {qltool-0.2.2 → qltool-0.2.4}/src/qltool/main.py +9 -4
- {qltool-0.2.2 → qltool-0.2.4}/.gitignore +0 -0
- {qltool-0.2.2 → qltool-0.2.4}/MANIFEST.in +0 -0
- {qltool-0.2.2 → qltool-0.2.4}/README.md +0 -0
- {qltool-0.2.2 → qltool-0.2.4}/README.org +0 -0
- {qltool-0.2.2 → qltool-0.2.4}/src/qltool/__init__.py +0 -0
- {qltool-0.2.2 → qltool-0.2.4}/src/qltool/client.py +0 -0
- {qltool-0.2.2 → qltool-0.2.4}/src/qltool/data/ql570 +0 -0
- {qltool-0.2.2 → qltool-0.2.4}/src/qltool/data/ql570.c +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qltool
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: PRINT simple labels on ql700
|
|
5
|
-
Requires-Python: >=3.
|
|
5
|
+
Requires-Python: >=3.10
|
|
6
6
|
Requires-Dist: click>=8.2.1
|
|
7
7
|
Requires-Dist: console>=0.9911
|
|
8
8
|
Requires-Dist: importlib-resources>=6.5.2
|
|
@@ -414,11 +414,16 @@ def cli(lines, do_print, device, fmt, width, gray, font_size, qr_path, qr_create
|
|
|
414
414
|
if not do_print:
|
|
415
415
|
# display with cv2
|
|
416
416
|
cvim = pil_to_cv2(im)
|
|
417
|
-
cv2.imshow("Preview - press any key to close", cvim)
|
|
418
|
-
cv2.waitKey(0)
|
|
417
|
+
cv2.imshow("Preview - press 'p' to print or any other key to close", cvim)
|
|
418
|
+
key = cv2.waitKey(0)
|
|
419
419
|
cv2.destroyAllWindows()
|
|
420
|
-
|
|
421
|
-
|
|
420
|
+
# Check if 'p' or 'P' was pressed (ASCII 112 or 80)
|
|
421
|
+
if key & 0xFF == ord('p') or key & 0xFF == ord('P'):
|
|
422
|
+
print("i... 'p' pressed, proceeding to print...")
|
|
423
|
+
do_print = True
|
|
424
|
+
else:
|
|
425
|
+
print("i... Saved:", out)
|
|
426
|
+
return
|
|
422
427
|
# printing path
|
|
423
428
|
exe = get_data_path()
|
|
424
429
|
dev = device if device else check_lpx()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|