Calling Hal_Action_MDI from Glade VCP
- slammers
- Offline
- Senior Member
-
Less
More
- Posts: 43
- Thank you received: 0
28 Dec 2021 00:59 #230103
by slammers
Calling Hal_Action_MDI from Glade VCP was created by slammers
I created a Glade VCP to call an action_mdi widget after pressing a button. Although this seems to work, a side affect seems to be that it sets the gmoccapy user interface to MDI mode. I have to press the manual button to close MDI mode and get back to manual mode.
Is there a way to prevent the UI from switching to MDI mode?
If not can you create an event after the MDI action completes and run code that switches the UI back to manual mode?
Can you run python code to execute mdi commands without using action widgets?
Is there a way to prevent the UI from switching to MDI mode?
If not can you create an event after the MDI action completes and run code that switches the UI back to manual mode?
Can you run python code to execute mdi commands without using action widgets?
Please Log in or Create an account to join the conversation.
- rodw
-
- Online
- Platinum Member
-
Less
More
- Posts: 11194
- Thank you received: 3732
28 Dec 2021 02:44 #230105
by rodw
Replied by rodw on topic Calling Hal_Action_MDI from Glade VCP
there are halui pins to select the mode. You could incorporate them into your action widget.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7873
- Thank you received: 2127
28 Dec 2021 02:56 #230106
by cmorley
Replied by cmorley on topic Calling Hal_Action_MDI from Glade VCP
You would typically check the mode before then call the action wait to complete then set the original mode.
If you know the mode after should always be say auto you could skip the checking mode part.
But it all needs to be done in python code in a handler file.
Or as Rod said, hack in some HAL code to call after.
If you know the mode after should always be say auto you could skip the checking mode part.
But it all needs to be done in python code in a handler file.
Or as Rod said, hack in some HAL code to call after.
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.047 seconds