- Posts: 5712
- Thank you received: 0
QtVCP gcode file opening
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:
Cheers, Phill.
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.
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
Sorry for taking so long..
Chris
Please Log in to join the conversation.
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.
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.
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.
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:
which seems to work ok.
2. If I inadvertently open a incorrect python file with something like:
in it then it gives an error dialog:
The full contents are:
Cheers, Phill.
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
Edit: I changed line 219 in qt_istat.py to:
Code:
k = k.replace('.','*.').replace(',',' ')
2. If I inadvertently open a incorrect python file with something like:
Code:
infile = sys.argv[1]
Warning: Spoiler!
Attachment not found
The full contents are:
Warning: Spoiler!
Code:
Traceback (most recent call last):
File "/home/phill/git_imac/lcnc/lib/python/qtvcp/qt_action.py", line 373, in update
self.finish()
File "/home/phill/git_imac/lcnc/lib/python/qtvcp/qt_action.py", line 398, in finish
self.error(r, "".join(self.stderr_text))
File "/home/phill/git_imac/lcnc/lib/python/qtvcp/qt_action.py", line 403, in error
dialog = gtk.MessageDialog(None, 0, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE,
NameError: global name 'gtk' is not defined
Cheers, Phill.
Please Log in to join the conversation.
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
keeping me honest..
Chris
Please Log in to join the conversation.
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
Chris M
Please Log in to join the conversation.
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.
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.
Time to create page: 0.061 seconds
