I want to use scripting to dynamic change the font size for a power table。
Below is the scripting under Extention Function of configureCell of this power table. I created a custom property named "Status" for this power table, and I want use this property to dynamic change the font size. But seems it doesn't work.
Anyone can help give me some advise? where is the problem.
def configureCell(self, value, textValue, selected, rowIndex, colIndex, colName, rowView, colView):
if self.Status == 'expand':
return {'font': Font("Dialog", 24)}
elif self.Status == 'collapse':
return {'font': Font("Dialog", 32)}
else:
pass
Issue detail as below:
In 'expand' status:
In 'collapse' status:
The property of status is changed by a button script, but the font does not change accordingly.