Hello,
I am using a TextBox in a FloatingWindow:
def __init__(self):
self.w = FloatingWindow((200, 75))
self.w.textBox = TextBox((10, 30, -10, 20), "test", sizeStyle = "small")
self.w.button = Button((10, -20, -10, 15), "Go!", sizeStyle = "mini", callback=self.showProgress)
The Button here is used to start an action (self.defineGlyphsToMake), and I want the TextBox content text to be updated just before.
def showProgress(self, sender):
self.w.textBox.set("Checking UFO...")
glyphsToMake = self.defineGlyphsToMake(f, extrasL)
The strange thing is that the textBox content is updated only _after_ the self.defineGlyphsToMake is finished.
Is there something I am doing wrong or is it a flaw in Vanilla ?