Сustomization QTvcp

More
6 years 6 months ago #164305 by hottabich
Replied by hottabich on topic Сustomization QTvcp
I am using Linux debian 4.9.0-8-rt-amd64 # 1 SMP PREEMPT RT Debian 4.9.130-2 (2018-10-27) x86_64 GNU / Linux. Linuxcnc 2.8-pre 5649. System Language
translated into English no changes. If you disable last_loaded_program all
working.

Please Log in to join the conversation.

More
6 years 6 months ago #164312 by hottabich
Replied by hottabich on topic Сustomization QTvcp

cmorley wrote: 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

All OK!!! You are the best. Thank you very much.

Please Log in to join the conversation.

More
6 years 6 months ago #164314 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Did you load a program using the dialog after the change?
It has to make a difference.


Actually QtDragin is using 'last_file_path' wrong.
'last file path' in preference file is supposed to not have a filename, it is used to preselect the folder when you open the load dialog.

I'll figure out the proper fix soon

Please Log in to join the conversation.

More
6 years 6 months ago #164315 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Sorry, I hastened to answer All OK!!! The question is closed.

Please Log in to join the conversation.

More
6 years 6 months ago #164318 by hottabich
Replied by hottabich on topic Сustomization QTvcp
If you can still ask a question. MDITouchy may work in qtdragon or better
delete page. What do you advise?

Please Log in to join the conversation.

More
6 years 6 months ago #164329 by cmorley
Replied by cmorley on topic Сustomization QTvcp
MDITouchy can work in Qtdragon for sure.
You must code a button to run the MDI command though.

In QtTouchy the cycle start HAL pin will run the MDI command as long as the machine is in MDI mode.

You must decide how you would like to run the command

Please Log in to join the conversation.

More
6 years 6 months ago #164343 by cmorley
Replied by cmorley on topic Сustomization QTvcp
I pushed work to linuxcnc to fix the path/last program problem properly.
If you update linuxcnc and it stops working again this will be the fix for the handler file:
Code:
self.last_loaded_program = self.w.PREFS_.getpref('RecentPath_0', None, str,'BOOK_KEEPING')

I would also suggest:
Code:
def all_homed(self, obj): self.set_dro_homed(True) if self.first_turnon is True: self.first_turnon = False if self.w.chk_reload_tool.isChecked(): STATUS.emit('update-machine-log', 'PreLoad Tool #{}: '.format(self.reload_tool), 'TIME') command = "M61 Q{}".format(self.reload_tool) ACTION.CALL_MDI(command) if self.last_loaded_program is not None and self.w.chk_reload_program.isChecked(): STATUS.emit('update-machine-log', 'PreLoading NGC: ' + self.last_loaded_program, 'TIME') ACTION.OPEN_PROGRAM(self.last_loaded_program) self.w.filemanager.updateDirectoryView(self.last_loaded_program)

Please Log in to join the conversation.

More
6 years 6 months ago #164395 by hottabich
Replied by hottabich on topic Сustomization QTvcp

cmorley wrote: MDITouchy can work in Qtdragon for sure.
You must code a button to run the MDI command though.

In QtTouchy the cycle start HAL pin will run the MDI command as long as the machine is in MDI mode.

You must decide how you would like to run the command

I can not open QtTouchy to see
the algorithm of the MDI Touchy module. Please tell me what is wrong with me.

Please Log in to join the conversation.

More
6 years 6 months ago #164401 by cmorley
Replied by cmorley on topic Сustomization QTvcp
wow you seem to find all the problems :)

I'm not sure what going on with qttouchy sample.

but to run the QtTouchyMDI command (assuming mditouchy is the widget name):

self.w.mditouchy.run_command()

Please Log in to join the conversation.

More
6 years 6 months ago #164403 by cmorley
Replied by cmorley on topic Сustomization QTvcp
ahh did you move or did it ask to move the QtTouchy config?
It can't find the file: ../check_constraints.hal file

It' s in the sim/qtvcp_screens folder by default

Please Log in to join the conversation.

Time to create page: 0.757 seconds
Powered by Kunena Forum