- Posts: 129
- Thank you received: 8
Spacebar as a pause button not working
- turbostew
- Offline
- Premium Member
-
Less
More
5 years 7 months ago - 5 years 7 months ago #200932
by turbostew
Spacebar as a pause button not working was created by turbostew
Hello All,
I want a pause button to be the spacebar. (Mach3 carry over, it is the biggest button and I am in the habit of hitting it when things go south) I tried to add this to the QtDragon_handler,py but no worky. What am I doing wrong? Spent an hour or so searching to no avail....
KEYBIND.add_call('Key_Pause', 'on_keycall_pause') ## Original code line
KEYBIND.add_call('Key_Space', 'on_keycall_pause') ## Added this line myself......
I want a pause button to be the spacebar. (Mach3 carry over, it is the biggest button and I am in the habit of hitting it when things go south) I tried to add this to the QtDragon_handler,py but no worky. What am I doing wrong? Spent an hour or so searching to no avail....
KEYBIND.add_call('Key_Pause', 'on_keycall_pause') ## Original code line
KEYBIND.add_call('Key_Space', 'on_keycall_pause') ## Added this line myself......
Last edit: 5 years 7 months ago by turbostew.
Please Log in or Create an account to join the conversation.
- persei8
- Offline
- Platinum Member
-
Less
More
- Posts: 399
- Thank you received: 133
5 years 7 months ago #200953
by persei8
Replied by persei8 on topic Spacebar as a pause button not working
If you change Key_Space to Key_Any, the spacebar pause will work.
Jim
Jim
Please Log in or Create an account to join the conversation.
- turbostew
- Offline
- Premium Member
-
Less
More
- Posts: 129
- Thank you received: 8
5 years 7 months ago #201028
by turbostew
Replied by turbostew on topic Spacebar as a pause button not working
Thanks Jim, works like a champ but puzzling.....
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
5 years 7 months ago #201045
by cmorley
Replied by cmorley on topic Spacebar as a pause button not working
QT is weird sometimes.
Please Log in or Create an account to join the conversation.
- turbostew
- Offline
- Premium Member
-
Less
More
- Posts: 129
- Thank you received: 8
3 years 11 months ago #256607
by turbostew
Replied by turbostew on topic Spacebar as a pause button not working
Well, grabbed latest 2.9 master and Space no longer works for pause. Tried changing the Key_Space to key_Any with no luck. Ideas??
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
3 years 11 months ago #256636
by cmorley
Replied by cmorley on topic Spacebar as a pause button not working
Are you sure your modified handler file is being used?
It needs to be placed in a different folder in 2.9
It needs to be placed in a different folder in 2.9
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 3.440 seconds