Skip to content

Using the pyControl API to interface with the PC #124

Answered by alustig3
guykoy123 asked this question in Q&A
Discussion options

You must be logged in to vote

The API script can only act upon changes to the task variables after they have been made, instead we would like to prevent setting/changing the variable in the first place if it is invalid.

I have created an example for you that uses a custom controls dialog. Download and unzip validation_v1.zip. Place the input_validation.py in your tasks/ folder and place validation_gui.py in your controls_dialogs/ folder.

Hope that is enough to get you started. Let me know if you have questions!

CleanShot.2024-07-16.at.12.28.15.mp4

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
5 replies
@guykoy123
Comment options

@alustig3
Comment options

Answer selected by guykoy123
@guykoy123
Comment options

@alustig3
Comment options

@alustig3
Comment options

Comment options

You must be logged in to vote
7 replies
@alustig3
Comment options

@guykoy123
Comment options

@guykoy123
Comment options

@alustig3
Comment options

@guykoy123
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants