Text priting

is it possible to print on GUI from inside a function?

like this

hypo=10
glRasterPos2i(250,30)
Text(“Hypo = %.3f.” % hypo, “large”)
glRasterPos2i(200,20)
Text("$$$$$$$$$$$$$$$$$$$$$$")

i tried it inside the GUI function and it works fine

but when i put that inside a fucntion it does not give any error
but nothing happen on the GUI ?

any explanation on this ?

Thanks

Make sure you do a Draw.Redraw() after you call the function (if the variables this depends on are being driven by an event handler). Don’t do a Draw.Redraw() inside your GUI function, though, only in event handlers (buttons and others). If your calling your function from within the GUI function, and it doesn’t depend on something in your event handlers something strange might be going on…