QtVCP gcode file opening

More
24 Feb 2019 06:35 #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:
[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 or Create an account to join the conversation.

More
24 Feb 2019 08:02 #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
The following user(s) said Thank You: phillc54

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

More
24 Feb 2019 09:17 #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 or Create an account to join the conversation.

More
25 Feb 2019 03:08 - 25 Feb 2019 03:25 #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.
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:
                k = k.replace('.','*.').replace(',',' ')
which seems to work ok.


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

The full contents are:
Warning: Spoiler!



Cheers, Phill.
Attachments:
Last edit: 25 Feb 2019 03:25 by phillc54.

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

More
25 Feb 2019 03:30 - 25 Feb 2019 03:31 #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
Last edit: 25 Feb 2019 03:31 by cmorley.

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

More
25 Feb 2019 11:00 #127098 by cmorley
Replied by cmorley on topic QtVCP gcode file opening
Ok I think I got those fixed now.

Chris M
The following user(s) said Thank You: phillc54

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

More
26 Feb 2019 03:23 #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 or Create an account to join the conversation.

More
26 Feb 2019 08:56 #127143 by cmorley
Replied by cmorley on topic QtVCP gcode file opening
Keep it coming buddy :)

Chris

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

Time to create page: 0.321 seconds
Powered by Kunena Forum