Inline Images in wxHaskell

I am a Python programmer with experience in wxPython, and I am learning Haskell and have the ability to code a small GUI project in wxHaskell. One feature of wxPython that I haven't figured out how to duplicate yet is PyEmbeddedImage - where images can be saved as strings inside Python modules and then accessible from wxPython. This function exists in wxHaskell, and if so, how do you do it?

Thank!

+3
source share
2 answers

You can try to use file-embed to insert the file, and then use imageCreateFromPixelsto create the image.

imageGetPixels (, wx, )

+2

Yuras file-embed, .

, , Wiki Haskell (, ).

bytestring -XOverloadedStrings .

0

Source: https://habr.com/ru/post/1775570/


All Articles