I'm a Python programmer with experience in wxPython, and I'm learning Haskell and having a go at coding up a small GUI project in wxHaskell. One feature from wxPython that I have not yet figured out how to duplicate is PyEmbeddedImage - where images can be stored as strings inside Python modules, and then accessed from wxPython. Does this functionality exist in wxHaskell, and if so, how do you do it?
Thanks!
You can try to use file-embed to embed file and then use imageCreateFromPixels
to create image.
Use imageGetPixels
to prepare file before embedding (e.g. create a wx app that will load image from resource directory and serialize to file)