- Posts: 7
- Thank you received: 0
Johnny-Don wrote: User Tab integration.
I am using a custom user tab, I have a few buttons, for selecting an axis for a hand-wheel. I want the buttons to be sensitive(False) when the machine is in Auto Mode.
I already have a separate python file for my user tab (Per instructions earlier on in this topic, THANKS!!!)
My question is, how can I reference the state of things in the gmoccapy python file in my own python file. I don't know enough about python to get it just right. I know the basic idea, I just don't think I'm going about it the right way.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
newbynobi wrote: Hallo Johnny-Don,
I can not follow completely, but why you do not use a hal container and connect the sensitive hal pin to halui.mode.is-auto?
Please post your files, so i can see what to do.
If you want to import gmoccapy to your python file, make sure gmoccapy.py is in your python path
Norbert
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
6.9. Containers: HAL_HBox and HAL_Table
Compared to their Gtk counterparts they have one input BIT pin which controls if their child widgets are sensitive or not. If the pin is low then child widgets are inactive which is the default.
Tip
If you find some part of your GladeVCP application is grayed out (insensitive), see whether a container’s pin is unset.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.