QtVCP gcode file opening

More
7 years 8 months ago #127035 by phillc54
Replied by phillc54 on topic QtVCP gcode file opening
It works perfectly without filtering...

With filtering I get the following in the terminal:
Code:
[QtDesigner.QTVCP.QT_ACTION][DEBUG] get ./plasmac_gcode.py filtered program /home/phill/linuxcnc/nc_files/plasmac/metric_line10.ngc (qt_action.py:130) Openning filter program /home/phill/linuxcnc/nc_files/plasmac/metric_line10.ngc ./plasmac_gcode.py temp /tmp/emcflt-5IslA3.d/metric_line10.ngc [QtDesigner.QTVCP.QT_ACTION][DEBUG] Load program None (qt_action.py:133) emc/task/emctask.cc 405: interp_error: Unable to open file <None> Unable to open file <None> can't open None ERROR: Unable to open file <None> ERROR: can't open None

Cheers, Phill.

Please Log in to join the conversation.

More
7 years 8 months ago #127037 by cmorley
Replied by cmorley on topic QtVCP gcode file opening
Ok I finally got it -pushed fix.
Sorry for taking so long..

Chris

Please Log in to join the conversation.

More
7 years 8 months ago #127039 by phillc54
Replied by phillc54 on topic QtVCP gcode file opening
Many thanks Chris, I won't get time to try it until tomorrow.
No need to apologize, I don't know how you find the time to help so many people at one time or keep track of it all on top of your development work.

Cheers, Phill.

Please Log in to join the conversation.

More
7 years 8 months ago #127080 by phillc54
Replied by phillc54 on topic QtVCP gcode file opening
Tested with ngc, py and jpg filters and all works well with the exception of a couple of issues:

1. If multiple extensions are specified in the ini file (which does work in the axis gui) then when this entry is selected in the file dialog "Files of Type:" then no files with any of these extensions show up.
Code:
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
I tried changing the comma for a semi-colon and also a colon but that made no difference.

Edit: I changed line 219 in qt_istat.py to:
Code:
k = k.replace('.','*.').replace(',',' ')
which seems to work ok.


2. If I inadvertently open a incorrect python file with something like:
Code:
infile = sys.argv[1]
in it then it gives an error dialog:
Warning: Spoiler!

The full contents are:
Warning: Spoiler!



Cheers, Phill.

Please Log in to join the conversation.

More
7 years 8 months ago #127082 by cmorley
Replied by cmorley on topic QtVCP gcode file opening
Ahh yes ok. 'GTK' - left over from porting from gladevcp...I will fix those.

keeping me honest.. :)

Chris

Please Log in to join the conversation.

More
7 years 8 months ago #127098 by cmorley
Replied by cmorley on topic QtVCP gcode file opening
Ok I think I got those fixed now.

Chris M

Please Log in to join the conversation.

More
7 years 8 months ago #127139 by phillc54
Replied by phillc54 on topic QtVCP gcode file opening
Thank Chris, looks good...

Just in case you are bored I'll see if I can find more for you to do. ;)

Cheers, Phill.

Please Log in to join the conversation.

More
7 years 8 months ago #127143 by cmorley
Replied by cmorley on topic QtVCP gcode file opening
Keep it coming buddy :)

Chris

Please Log in to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum