- Posts: 574
- Thank you received: 0
QtPyVCP Mill Touch V6
Please Log in to join the conversation.
Not sure where the second argument is coming from.
using print(program_start_line) prints >> #<line_number> Obviously not what one would expect. I would expect the value from the line edit to be returned.
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 84, in run
CMD.auto(linuxcnc.AUTO_RUN, program_start_line)
TypeError: function takes exactly 1 argument (2 given)
Please Log in to join the conversation.
hottabich wrote: It will be very good. And is it possible to correct it so that the cutter rises on a pause? Thanks for attention.
That's not possible AFAIK because every situation is different.
JT
Please Log in to join the conversation.
Donb9261 wrote: Using your example program.run:#<qLineEditName> results in the following:
Not sure where the second argument is coming from.
using print(program_start_line) prints >> #<line_number> Obviously not what one would expect. I would expect the value from the line edit to be returned.
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 84, in run
CMD.auto(linuxcnc.AUTO_RUN, program_start_line)
TypeError: function takes exactly 1 argument (2 given)
That is a syntax example... you need to use the name of a qlinedeit.
JT
Please Log in to join the conversation.
I have my action set to: program.run:#<lineNumber>
My qlineedit is named lineNumber
prints #<LineNumber> No actual value from the entry sent just the text
Please Log in to join the conversation.
Thanks John.
Please Log in to join the conversation.
I will test some of the others to see if it is just program.run:line that is effected and walk it back from there.
Please Log in to join the conversation.
