Closed ryanbugden closed 1 year ago
To reproduce the issue in this extension itself, from the user perspective:
I think I figured it out.
https://github.com/typesupply/lasermeasure/blob/14531a145b4f748cd7acb2e02717959a1710f0a3/build/Laser%20Measure.roboFontExt/lib/laserMeasure/settingsWindow.py#L154
In the above line, the sender
is the TextField, but contentCallback
expects the sender
to be the content
.
So [content].getItemValues()
works, but [TextFieldObject].getItemValues()
doesn't.
Maybe you could go with just self.w.getItemValues()
?
This may be an ezui issue, but I figure this is a better place to post it.
I added a bit of debugging code to here
When other ezui items are edited in the window, the sender info is valid, but I think some wires are being crossed if the TextField is edited.
With the above print statements, changing the TextField to another character yields this output:
Expected (what I get from other callbacks):