QTPYVCP Info on GcodeEditor

More
15 Oct 2019 14:35 #147933 by billnixon
Where can I find information on the GcodeEditor widget in qtpyvcp? I have dragged the GcodeEditor widget into a frame and added some pushbuttons connected to slots for gcodeeditor below the wwidget. Files from FileSystemTable open in the editor.
Here are some of my problems:

1) Files are not editable.
2) The find function works, but not replace.
3) The "Save As" function does not actually save a new file.

I connected a pushbutton to the slot "setEditable(bool)" but that didn't seem to change anything.

I appreciate your help.

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

More
24 Oct 2019 16:10 #148711 by Lcvette
Replied by Lcvette on topic QTPYVCP Info on GcodeEditor
if you are trying to edit example gcode programs, such as 3dchips etc.. they are protected and the editor will not change them. try physically saving and renaming them in another folder and retest to see if your gcode editor works. we have it working great in probe basic, you could install that and see how the connections are setup.

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

More
25 Oct 2019 02:21 #148773 by billnixon
I like the idea of installing probe_basic. I copied the probe_basic directory from home/qtpyvcp/examples to my home directory, and changed the VCP setting in my ini file to probe_basic, but I think there is more to installing than that because Linuxcnc could not find the entry point to probe_basic. What else needs to be done to install probe_basic?

Also, for the editor, I was trying to edit my own g code files that I had written, not locked files.

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

More
18 Nov 2019 22:57 - 19 Nov 2019 00:03 #150595 by Leon82
Replied by Leon82 on topic QTPYVCP Info on GcodeEditor

Lcvette wrote: if you are trying to edit example gcode programs, such as 3dchips etc.. they are protected and the editor will not change them. try physically saving and renaming them in another folder and retest to see if your gcode editor works. we have it working great in probe basic, you could install that and see how the connections are setup.


Does it update with qtpyvcp of is there another branch to sync. My copy doesn't have any signals set for saving the file. I have gotten as far as getting the selected file into the plain text widget

I am able to edit in the gcode editor.

I set a button as checkable and a signal for when toggled set editable and I can edit.

I have not been able to successfully save it
Last edit: 19 Nov 2019 00:03 by Leon82.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum