Thanks Frederik. That’s a very useful start. I see it does not inherit/use the text attribute of the Vanilla EditText, which I need, but I guess I’ll look into making a subclass of my own ... maybe for the version after next
if you want to receive those notifications, just add this .py file to the start up scripts in your preferences. This doesn't effect performance, unless to your part of the code, what is been executed when the notification is been send, takes a while.
mmm, not directly from the robofab objects
but you could use the naked object
g = CurrentGlyph()
# remove the first segment from the first contour
1.8 question: The CurrentSpaceCenter in mojo.UI has a method getSuffix() which works fine to read whatever has been selected in the suffixes menu, but I cannot find a corresponding way to programmatically set a suffix and apply to the text in the Space Center. Is there a way to do this?
FYI: in the upcoming release RF3.1 both the magnetic as the show measurements attributes of a guideline will be part of the preferences:
to change the default use, or the preference json editor (alt click the Preferences menu item):
from mojo.ui import setDefault