QtPyVCP - Starting Line Number - Value From LineEdit to actionButton

More
10 Dec 2019 17:22 - 10 Dec 2019 17:30 #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?



Attachments:
Last edit: 10 Dec 2019 17:30 by Donb9261. Reason: Adding Screen Shots

Please Log in or Create an account to join the conversation.

More
10 Dec 2019 17:30 #152445 by Leon82
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 or Create an account to join the conversation.

More
10 Dec 2019 17:33 #152446 by Donb9261
I think you have connect the value of the line edit to the function in the action def. Issue is how? :(

Please Log in or Create an account to join the conversation.

Time to create page: 0.148 seconds
Powered by Kunena Forum