- Posts: 574
- Thank you received: 96
Сustomization QTvcp
- hottabich
- Offline
- Platinum Member
-
Less
More
5 years 10 months ago #192424
by hottabich
Replied by hottabich on topic Сustomization QTvcp
Action button
. Converting to QPushButton no reaction.
Code:
No action recognised (action_button.py:612)
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
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.
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
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.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
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.
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
5 years 10 months ago #192435
by hottabich
Replied by hottabich on topic Сustomization QTvcp
Happened faster button False.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
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:
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