Сustomization QTvcp

More
6 years 6 months ago #164288 by cmorley
Replied by cmorley on topic Сustomization QTvcp

tommylight wrote: The subroutine path is wrong in the ini.
remove ~ and add /home/jura
And why is it looking for probe_basic files there?
You are using QtVCP, not PyQtVCP.


qtdragon has a basic probe.

Please Log in to join the conversation.

More
6 years 6 months ago #164289 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Yes it looks like the dialog loading doesn't catch the filename only the folders.
I'm still thinking this is related to language - as it works properly for me.
I'll see if I can remember how to change languages on my system and try again.

Chris

Please Log in to join the conversation.

More
6 years 6 months ago #164290 by tommylight
Replied by tommylight on topic Сustomization QTvcp
I thought after i wrote that, i vaguely recall using the probe basic name for something else.

Please Log in to join the conversation.

More
6 years 6 months ago #164291 by cmorley
Replied by cmorley on topic Сustomization QTvcp

tommylight wrote: Check what file it is trying to open on startup, it should be in the ini file as
open_file=xxxxxxx


qtvcp doesn't currently support preloading programs.

Please Log in to join the conversation.

More
6 years 6 months ago #164293 by tommylight
Replied by tommylight on topic Сustomization QTvcp

cmorley wrote:

tommylight wrote: Check what file it is trying to open on startup, it should be in the ini file as
open_file=xxxxxxx


qtvcp doesn't currently support preloading programs.

Did not know that, thank you for clarifying.

Please Log in to join the conversation.

More
6 years 6 months ago #164294 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Please remind me what distribution you are using.

Please Log in to join the conversation.

More
6 years 6 months ago #164298 by cmorley
Replied by cmorley on topic Сustomization QTvcp
I see some weirdness:
your log:

2020-04-17 09:54:48,769 - QtDesigner.QTVCP.QT_ACTION - INFO - Homing Joint: -1
2020-04-17 09:54:51,614 - QtDesigner.QTVCP.QT_ACTION - DEBUG - Load program /home/jura/linuxcnc/nc_files
2020-04-17 09:55:05,914 - QTvcp.QTVCP.WIDGETS.OVERLAY_WIDGET - DEBUG - Overlay - Show
2020-04-17 09:55:08,740 - QTvcp.QTVCP.WIDGETS.DIALOG_WIDGET - DEBUG - Button pressed is: &Yes
2020-04-17 09:55:08,741 - QTvcp.QTVCP.WIDGETS.OVERLAY_WIDGET - DEBUG - Overlay - Hide
2020-04-17 09:55:08,742 - QTvcp.QTVCP.WIDGETS.DIALOG_WIDGET - DEBUG - Value of pressed button: 16384
2020-04-17 09:55:08,845 - QTvcp.QTVCP.QT_MAKEPINS - INFO - Closing cleanup on: basicprobe
2020-04-17 09:55:08,846 - QTvcp.QTVCP.WIDGETS.BASIC_PROBE - DEBUG - Saving Basic Probe data to preference file.


Mine:

2020-04-17 11:57:56,248 - QtDesigner.QTVCP.QT_ACTION - INFO - Homing Joint: -1
2020-04-17 11:58:03,842 - QTvcp.QTVCP.WIDGETS.OVERLAY_WIDGET - DEBUG - Overlay - Show
2020-04-17 11:58:14,314 - QTvcp.QTVCP.WIDGETS.OVERLAY_WIDGET - DEBUG - Overlay - Hide
2020-04-17 11:58:14,314 - QTvcp.QTVCP.WIDGETS.DIALOG_WIDGET - DEBUG - Saving FileDialog-geometry data from widget screen_options to file.
2020-04-17 11:58:14,456 - QtDesigner.QTVCP.QT_ACTION - DEBUG - Load program /home/chris/linuxcnc/nc_files/hazzy.ngc
2020-04-17 11:58:14,502 - QTvcp.QTVCP.WIDGETS.GCODE_GRAPHICS - DEBUG - load the display: /home/chris/linuxcnc/nc_files/hazzy.ngc
2020-04-17 12:03:12,493 - QTvcp.QTVCP.WIDGETS.OVERLAY_WIDGET - DEBUG - Overlay - Show
2020-04-17 12:03:14,039 - QTvcp.QTVCP.WIDGETS.DIALOG_WIDGET - DEBUG - Button pressed is: &Yes
2020-04-17 12:03:14,040 - QTvcp.QTVCP.WIDGETS.OVERLAY_WIDGET - DEBUG - Overlay - Hide
2020-04-17 12:03:14,040 - QTvcp.QTVCP.WIDGETS.DIALOG_WIDGET - DEBUG - Value of pressed button: 16384

2020-04-17 12:03:14,139 - QTvcp.QTVCP.QT_MAKEPINS - INFO - Closing cleanup on: basicprobe
2020-04-17 12:03:14,140 - QTvcp.QTVCP.WIDGETS.BASIC_PROBE - DEBUG - Saving Basic Probe data to preference file.


Notice how your's loads the program before the overlay is shown or hidden and before the yes button is pressed.
Also your is missing the actual program name so it can't be actually loading a program I would think.

Chris

Please Log in to join the conversation.

More
6 years 6 months ago #164301 by cmorley
Replied by cmorley on topic Сustomization QTvcp

hottabich wrote: Found where the error is. How are you Chris with this file, load_dialog_action save in
examples and then there he searches for the error too.


Ahh yes I get it now in qtdragon it does preload a program!
I didn't have 'reload program' option selected that is why i didn't get the error.

Please Log in to join the conversation.

More
6 years 6 months ago #164302 by cmorley
Replied by cmorley on topic Сustomization QTvcp
In dialog_widget.py line 532 change to:
Code:
if fname and not return_path: if self.PREFS_: self.PREFS_.putpref('last_file_path', fname, str, 'BOOK_KEEPING') ACTION.OPEN_PROGRAM(fname) STATUS.emit('update-machine-log', 'Loaded: ' + fname, 'TIME') return fname

Should store the program name properly

Chris

Please Log in to join the conversation.

More
6 years 6 months ago #164303 by tommylight
Replied by tommylight on topic Сustomization QTvcp
Now i am confused ! :)
All is good, i will continue to monitor from a distance.

Please Log in to join the conversation.

Time to create page: 0.876 seconds
Powered by Kunena Forum