Hi,
In a class derived from BaseEventTool, I use
g = self.getGlyph()
f = g.getParent()
in order to obtain the font containing the glyph g.
However, when I have two opened fonts F1 and F2 and two GlyphWindows opened (one from each font : g1 from F1 and g2 from F2), and when I go from one glyph window to the other, the following code :
print g.name, g.getParent.fileName
gives me : g1 F2 or g2 F1
and after some more clicking, I finally get correct values (g1 F1 or g2 F2)
There seem to be only partially updated information when switching windows.
Regards,
Samuel