[Haskell-beginners] gtk2hs and threadDelay

Brandon Allbery allbery.b at gmail.com
Mon Dec 26 10:20:27 CET 2011


On Mon, Dec 26, 2011 at 03:37, <gabre at caesar.elte.hu> wrote:

> I expect this code to do the following: when somebody clicks the button
> "btn" from record gui, the program draws something, and then waits for
> 1800000 microsecs (I hope threadDelay is measured in microsecs), and then
> draws something else. In fact, the code doesnt do this, but waits 1800000+
> microsecs, and draws everything at the same time. Is there an error
> somewhere?
>

The usual behavior is to "batch" screen updates until your handler returns.
 I *think* you want Graphics.UI.Gtk.Gdk.drawWindowProcessUpdates.

-- 
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/078b0d5b/attachment.htm>


More information about the Beginners mailing list