dymoprint icon indicating copy to clipboard operation
dymoprint copied to clipboard

Font-Size

Open EmJotGeh opened this issue 2 years ago • 8 comments

It would be nice if you could change the font size.

EmJotGeh avatar May 01 '22 16:05 EmJotGeh

Indeed. Currently, font size is currently dynamic based on the number of lines.

In case you're motivated to implement something further, you're welcome to submit a PR! :slightly_smiling_face:

maresb avatar May 01 '22 17:05 maresb

Hey @EmJotGeh, do you still have your label printer? I just got a PR which implements this feature in #54. If possible, would you be willing to test it? (My printer is currently broken.)

You can install the testing version with

pip install git+https://github.com/MooVx/dymoprint@master

and then you run dymoprint_gui.

maresb avatar May 03 '23 22:05 maresb

Hey @maresb, this sounds pretty nice! I will try it as soon as possible! Thank you very much :-)

EmJotGeh avatar May 04 '23 06:05 EmJotGeh

Ok, the gui is working well and looks nice - but i get a permission issue:

Traceback (most recent call last):
  File "/home/user/.local/lib/python3.11/site-packages/dymoprint/gui.py", line 159, in print_label
    self.print_server.print_label(
  File "/home/user/.local/lib/python3.11/site-packages/dymoprint/dymo_print_engines.py", line 274, in print_label
    devout = open(dev, "rb+")
             ^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Keine Berechtigung: '/dev/hidraw1'
Abgebrochen (Speicherabzug geschrieben)

and when i try to start it with root:

Traceback (most recent call last):
  File "/home/user/.local/bin/./dymoprint_gui", line 5, in <module>
    from dymoprint.gui import main
ModuleNotFoundError: No module named 'dymoprint'

EmJotGeh avatar May 04 '23 06:05 EmJotGeh

Thanks so much @EmJotGeh for the test!!!

Does it work again if you switch back to the release version with pip install dymoprint?

maresb avatar May 04 '23 06:05 maresb

Hey Ben @maresb,

today i tried dymoprint again. Installed again - and all is working pretty fine with dymoprint cli and dymoprint_gui!

Thank you very much for this really excellent work :-) It was my last hardware that needed a Windows OS.

I drink a beer to you ;-)

EmJotGeh avatar Jun 21 '23 21:06 EmJotGeh

That's excellent @EmJotGeh, I'm very glad!

Which version did you try? Was it the latest stable version v1.4.1? Or was it the beta release v2.0.0b0 described in #56?

There are two completely separate methods of connection in v1.4.1, and that makes development and testing difficult. But v2 has just one, so I'm eager to get that tested and merged.

maresb avatar Jun 22 '23 08:06 maresb

Hey @maresb,

package dymoprint 1.4.1, installed using Python 3.11.3

  • dymoprint
  • dymoprint_gui

It sounds exciting that you want to simplify the connection of the dymoprinter.

EmJotGeh avatar Jun 22 '23 13:06 EmJotGeh