Сustomization QTvcp

More
5 years 10 months ago #192424 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Action button
Code:
No action recognised (action_button.py:612)
. Converting to QPushButton no reaction.
Attachments:

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

More
5 years 10 months ago #192426 by cmorley
Replied by cmorley on topic Сustomization QTvcp
did you add a print statement to the function?

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

More
5 years 10 months ago #192428 by hottabich
Replied by hottabich on topic Сustomization QTvcp
How to do it?

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

More
5 years 10 months ago - 5 years 10 months ago #192432 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Code:
def spindle_faster(self, state): print 'faster button', state if state: if STATUS.is_spindle_on(0): ACTION.SET_SPINDLE_FASTER(0)
Last edit: 5 years 10 months ago by cmorley.

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

More
5 years 10 months ago #192435 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Happened faster button False.
Attachments:

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

More
5 years 10 months ago #192439 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Good - ok the state is never True so the rest of the code doesn't get run.
I see now that you used 'clicked()' as the signal so that's why it's always false.
No problem, change it to this:
Code:
def spindle_faster(self): if STATUS.is_spindle_on(0): ACTION.SET_SPINDLE_FASTER(0)

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

Moderators: cmorley
Time to create page: 0.637 seconds
Powered by Kunena Forum