Сustomization QTvcp
17 Apr 2020 19:32 #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.
translated into English no changes. If you disable last_loaded_program all
working.
Please Log in or Create an account to join the conversation.
17 Apr 2020 19:51 - 17 Apr 2020 20:01 #164312
by hottabich
Replied by hottabich on topic Сustomization QTvcp
All OK!!! You are the best. Thank you very much.In dialog_widget.py line 532 change to:
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
Last edit: 17 Apr 2020 20:01 by hottabich.
Please Log in or Create an account to join the conversation.
17 Apr 2020 20:00 #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
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
The following user(s) said Thank You: hottabich
Please Log in or Create an account to join the conversation.
17 Apr 2020 20:04 - 17 Apr 2020 20:07 #164315
by hottabich
Replied by hottabich on topic Сustomization QTvcp
Sorry, I hastened to answer All OK!!! The question is closed.
Last edit: 17 Apr 2020 20:07 by hottabich.
Please Log in or Create an account to join the conversation.
17 Apr 2020 20:13 #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?
delete page. What do you advise?
Please Log in or Create an account to join the conversation.
17 Apr 2020 21:01 #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
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
The following user(s) said Thank You: hottabich
Please Log in or Create an account to join the conversation.
17 Apr 2020 22:18 #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:
I would also suggest:
If you update linuxcnc and it stops working again this will be the fix for the handler file:
self.last_loaded_program = self.w.PREFS_.getpref('RecentPath_0', None, str,'BOOK_KEEPING')
I would also suggest:
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 or Create an account to join the conversation.
18 Apr 2020 04:33 #164395
by hottabich
the algorithm of the MDI Touchy module. Please tell me what is wrong with me.
Replied by hottabich on topic Сustomization QTvcp
I can not open QtTouchy to seeMDITouchy 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
the algorithm of the MDI Touchy module. Please tell me what is wrong with me.
Please Log in or Create an account to join the conversation.
18 Apr 2020 04:58 #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()
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 or Create an account to join the conversation.
18 Apr 2020 05:03 #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
It can't find the file: ../check_constraints.hal file
It' s in the sim/qtvcp_screens folder by default
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.197 seconds