- Posts: 169
- Thank you received: 0
QtPyVCP - Starting Line Number - Value From LineEdit to actionButton
6 years 10 months ago #152444
by Donb9261
I am trying to get a Run "From Line Number" action button working but have yet to make it work.
So far I have tried:
action: program.run:<startingLineNumber> **startingLineNumber** is a VCPLineEdit.
Error:
Traceback (most recent call last):
File "/home/don/.local/lib/python2.7/site-packages/qtpyvcp/actions/__init__.py", line 96, in <lambda>
widget.clicked.connect(lambda: method(*args, **kwargs))
File "/home/don/.local/lib/python2.7/site-packages/qtpyvcp/actions/program_actions.py", line 82, in run
CMD.auto(linuxcnc.AUTO_RUN, program_start_line)
TypeError: function takes exactly 1 argument (2 given)
action: program.run:#<startingLineNumber>
Results in the same error above.
It appears I am getting some value but not exactly sure what the value is??? I assume that <startingLineNumber> returns the value of the text box??? given the example in probe_Basic for the Tool Number entry and subsequent M6 button.
Any thoughts or help?
So far I have tried:
action: program.run:<startingLineNumber> **startingLineNumber** is a VCPLineEdit.
Error:
Traceback (most recent call last):
File "/home/don/.local/lib/python2.7/site-packages/qtpyvcp/actions/__init__.py", line 96, in <lambda>
widget.clicked.connect(lambda: method(*args, **kwargs))
File "/home/don/.local/lib/python2.7/site-packages/qtpyvcp/actions/program_actions.py", line 82, in run
CMD.auto(linuxcnc.AUTO_RUN, program_start_line)
TypeError: function takes exactly 1 argument (2 given)
action: program.run:#<startingLineNumber>
Results in the same error above.
It appears I am getting some value but not exactly sure what the value is??? I assume that <startingLineNumber> returns the value of the text box??? given the example in probe_Basic for the Tool Number entry and subsequent M6 button.
Any thoughts or help?
Attachment not found
Please Log in to join the conversation.
6 years 10 months ago #152445
by Leon82
Replied by Leon82 on topic QtPyVCP - Starting Line Number - Value From LineEdit to actionButton
I tried it like that using my tool offset label to get it going quick. I wasn't able to get it either
Please Log in to join the conversation.
6 years 10 months ago #152446
by Donb9261
Replied by Donb9261 on topic QtPyVCP - Starting Line Number - Value From LineEdit to actionButton
I think you have connect the value of the line edit to the function in the action def. Issue is how?
Please Log in to join the conversation.
Time to create page: 0.248 seconds
