- LinuxCNC
- General LinuxCNC Questions
- QtPyVCP - Starting Line Number - Value From LineEdit to actionButton
QtPyVCP - Starting Line Number - Value From LineEdit to actionButton
- Donb9261
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 165
- Thank you received: 102
10 Dec 2019 17:22 - 10 Dec 2019 17:30 #152444
by Donb9261
QtPyVCP - Starting Line Number - Value From LineEdit to actionButton was created 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?
Last edit: 10 Dec 2019 17:30 by Donb9261. Reason: Adding Screen Shots
Please Log in or Create an account to join the conversation.
- Leon82
- Offline
- Platinum Member
Less
More
- Posts: 592
- Thank you received: 77
10 Dec 2019 17:30 #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 or Create an account to join the conversation.
- Donb9261
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 165
- Thank you received: 102
10 Dec 2019 17:33 #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 or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- QtPyVCP - Starting Line Number - Value From LineEdit to actionButton
Time to create page: 0.060 seconds