[Haskell-beginners] gtk2hs and threadDelay
Brandon Allbery
allbery.b at gmail.com
Mon Dec 26 11:45:11 CET 2011
On Mon, Dec 26, 2011 at 05:33, <gabre at caesar.elte.hu> wrote:
> I dont really know, what timer functions there are, I googled "timing,
> scheduling, delaying in haskell", but the only function I found, was
> threaddelay. How did you mean "adding a timer"?
>
http://hackage.haskell.org/packages/archive/gtk/0.12.2/doc/html/Graphics-UI-Gtk-General-General.html#g:7
> On the other side, I checked Graphics.UI.Gtk.Gdk.**drawWindowProcessUpdates.
> I guess, I
It may not actually be the right function. Felipe was however correct in
that it's the wrong way to go about it; see the above to add a callback
that executes after a delay, *without locking up the UI* which is what the
threadDelay method will do.
--
brandon s allbery allbery.b at gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20111226/db22c5fa/attachment.htm>
More information about the Beginners
mailing list