I'm trying to import objects from an external file. The Object is not stored in Object map.
Definition:
shutterMultiplier = waitForObject({"name": "UserVisible/Capturing
Settings/Basic/Shutter Multiplier.AHBox<int>.SpinBox", "type": "QSpinBox",
"visible": 1})
This is working correctly. However, when I try it with:
shutterMultiplier = findObject({"name": name, "type": type, "visible": 1})
When
name = UserVisible/Capturing Settings/Basic/Shutter Multiplier.AHBox<int>.SpinBox
type = QSpinBox
I only get LookUpError
about not recognized properties. I also tried the option with name and typed in ""
. The list of missing properties is not populated. Is there any way how to make this work?
Problem was not the syntax. Solution was to save correct syntax and kill the application and all created instances. Also there helped to make it strings without "
.
str(testData.field(sample, "name"))