[Haskell-cafe] wxhaskell : how to generate an event?
nick at bel.ru
Tue Oct 11 08:34:58 CEST 2011
10.10.2011 16:42, Johannes Waldmann пишет:
> Dear all,
> in wxHaskell (core) I can set and get event handlers
> but how is it possible to create events (programmatically)
> and somehow feed them into the "main event handling loop"?
> I think I need this in an application that needs to handle
> concurrently events that arrive via the GUI (like mouse clicks)
> and events from an external source (specifically, alsa-midi input).
> Of course I could handle those "extra events" separately from wxcore,
> but they should ultimately result in changes to the GUI state,
> and it feels dangerous to do this without synchronisation.
> Any hints welcome. Thanks - J.W.
Hello, hope this helps:
At least this is works for me.
More information about the Haskell-Cafe