Here is my project
I am creating a script inside of the CommitButton
:
def getComponentEntries(self):
component_label = self.getSibling("CompLabel")
entries = self.getSibling('Entries')
entries_dict = {}
for ent in entries.getChildren():
if "Entry" in ent.meta.name:
entries_dict[str(ent.getChild('Label').props.text).lower()] = ent.getChild('NumericalEntryField').props.value
return component_label.props.text, entries_dict
When I run this script inside of the runAction
for clicking the commit button however, I get the error
Error running action 'dom.onClick' on Hermes@D/root/Layout/AddCompPopup/CommitButton: Traceback (most recent call last): File "<function:runAction>", line 2, in runAction File "<custom-method getComponentEntries>", line 10, in getComponentEntries AttributeError: 'NoneType' object has no attribute 'props'
All of these children should have props
but for some reason it is inaccessible.
Any assistance is appreciated. Thanks!