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.
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 0.2.2
2
+ current_version = 0.2.4
3
3
  commit = True
4
4
  tag = True
5
5
 
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qltool
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: PRINT simple labels on ql700
5
- Requires-Python: >=3.12
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
@@ -1,9 +1,9 @@
1
1
  [project]
2
2
  name = "qltool"
3
- version = "0.2.2"
3
+ version = "0.2.4"
4
4
  description = "PRINT simple labels on ql700"
5
5
  readme = "README.md"
6
- requires-python = ">=3.12"
6
+ requires-python = ">=3.10"
7
7
  dependencies = [
8
8
  "click>=8.2.1",
9
9
  "console>=0.9911",
@@ -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
- print("i... Saved:", out)
421
- return
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