QtPyVCP - GCodeEditor - Widget Styling - Please review and comment.

More
27 Dec 2019 15:59 #153292 by Donb9261
It should. Kurt is referencing where the correct file to edit is. If done by his masterful method, you would then be able to run a pip uninstall and then a pip install to rewrite the .local set avoiding the need to edit the .local copies completely and limiting file read mistakes and potential crashes. Working copy separation from your dev copy.

I will try my best to post a full explanation using his instructions in a step by step soon. Until then as long as it works for you now coolness...
The following user(s) said Thank You: KCJ, Leon82

Please Log in or Create an account to join the conversation.

More
27 Dec 2019 21:02 - 27 Dec 2019 21:17 #153314 by Leon82
i encountered this trying to safe from inside the vcp

Traceback (most recent call last):
File "/home/leon/.local/lib/python2.7/site-packages/qtpyvcp/widgets/input_widgets/gcode_editor.py", line 459, in save
self.filename = QtCore.QFileInfo(path)
NameError: global name 'QtCore' is not defined


edit to add,

looks like the @slot save is different between the two
Last edit: 27 Dec 2019 21:17 by Leon82.

Please Log in or Create an account to join the conversation.

More
27 Dec 2019 22:01 #153323 by Donb9261
It is. One is dependent on the file widget and assumes you have the file name already populated into a label.

I will send my slot that works with either.
The following user(s) said Thank You: hottabich

Please Log in or Create an account to join the conversation.

More
28 Dec 2019 08:41 - 28 Dec 2019 08:42 #153359 by hottabich
I use your GcodeEditor file and your run from line method, everything works thank you very much and Happy New Year !!!
Attachments:
Last edit: 28 Dec 2019 08:42 by hottabich.

Please Log in or Create an account to join the conversation.

Moderators: KCJLcvette
Time to create page: 0.074 seconds
Powered by Kunena Forum