Questions tagged [wxhaskell]

A Haskell binding for wxWidgets

WxHaskell is a GUI library for Haskell built ontop of wxwidgets

83 questions
2
votes
1 answer

wxHaskell: convert Data.ByteString to Image

I have some raw data that represents an image as Data.ByteString. Is there a way in wxHaskell to convert it to an image/bitemap? This raw data can be an image like PNG/JPG/GIF, so it will start with byte sequences like "PNG etc". I tried to use…
Randomize
  • 8,651
  • 18
  • 78
  • 133
2
votes
0 answers

Making a label selectable in wxHaskell

I am writing a utility application in wxHaskell, and the users of this application will frequently need to copy-and-paste from the output of the application into other programs on their computer. The output of the program is fundamentally textual,…
exists-forall
  • 4,148
  • 4
  • 22
  • 29
2
votes
2 answers

run wxHaskell on other machine

I've compiled haskell program which uses wxHaskell library, now I would like to know how to make it run on other machines which doesn't have wxHaskell installed. Of course I can see errors and I can copy dlls written in output and copy them to that…
gruber
  • 28,739
  • 35
  • 124
  • 216
2
votes
2 answers

undefined reference to wxLog::DoLog error building wxHaskell against wxWidget 3.0

I am trying to build wxHaskell for wxWidgets 3.0. I used the latest git version of wxHaskell from https://github.com/wxHaskell/wxHaskell. I tried to follow install.txt in wxHaskell-master.zip, what I did so far is: cd wxdirect cabal install cd…
thor
  • 21,418
  • 31
  • 87
  • 173
2
votes
0 answers

WxHaskell and DragAndDrop: how to create custom event to trigger dropTargetOnData, dropTargetOnDrop, dropTargetOnEnter, dropTargetOnDragOver

WxHaskell and DragAndDrop I would like to know how to use the following events handlers : dropTargetOnData, dropTargetOnDrop, dropTargetOnEnter, dropTargetOnDragOver….[1] Could you check if my current believes are corrects : From wx Widgets/…
Luc Taesch
  • 193
  • 6
2
votes
0 answers

Separating State for a Model and GUI IO ( Wx) : Stack or FRP?

For my diagramming tool, I'd like to keep the code of the core model isolated from the GUI. In the following example, the "state " is passed around with vDiag, which is a Tvar. This is a design decision in wx. Now, For my diagramming tool, I 'd…
2
votes
0 answers

wxHaskell program starts really slow on Windows XP

I have write a wxHaskell program and it performs very good on Mac. But after lot of troubles and installed wxHaskell on Windows XP, my program take several minutes to start. Currently, the wx library is shared (DLL). Does anyone know what's the…
Eric Wong
  • 524
  • 9
  • 21
2
votes
1 answer

GUI programming in Haskell - installation problems on Ubuntu

is there a GUI package that is still up-to-date? I tried installing both wxHaskell and gtk2hs today and both fail on dependencies I just cannot solve (wxHaskell cannot find some wxWidget libs and while trying the glade tutorial gtk2hs fails on a…
Random Dev
  • 51,810
  • 9
  • 92
  • 119
2
votes
0 answers

wxHaskell Mac OS X Runtime Error

I followed these instructions to install wxWidgets (using Homebrew) and wxHaskell on OS X Lion. There were no errors. When I try the examples here, the first Hello World example runs fine. However, when I try to run the Bouncing Balls example, I…
Brandon oubiub
  • 311
  • 1
  • 3
  • 9
2
votes
1 answer

wxWindows 2.9 binary for windows

After an upgrade to the new Haskell Platform, my existing wxHaskell programs are broken. They all seem to now require wxWidgets 2.9, for which I can't find any binary versions. wxPack has 2.8, and beyond that one has to get a compiler and build it…
guthrie
  • 4,529
  • 4
  • 26
  • 31
1
vote
1 answer

How can I remove widgets from WxHaskell panel

My google-fu has failed me. How can I remove widgets that I've added to a Panel () ? For example, in the following, I want the controls-panel to become empty again. buildGUI = do f <- frame [ text := "Hello" ] controls <- panel f [] ctext…
aleator
  • 4,436
  • 20
  • 31
1
vote
2 answers

With wxWidgets, is there a straightforward way to draw lines between items in two lists?

Specifically in wxHaskell, but in general, would like to be able to draw lines between items in two lists that are side by side to show that there is a relationship between the items. Something like the mockup below.
mentics
  • 6,852
  • 5
  • 39
  • 93
1
vote
1 answer

Is wxHaskell unusable for the moment?

I'm on Ubuntu 21.04 "Hirsute Hippo", GHC 8.8.4, and Cabal 3.0.0.0. I cannot install the wx package. When I tried cabal install wx --lib directly, the following messages were outputted: Resolving dependencies... cabal: Could not resolve…
Dannyu NDos
  • 2,458
  • 13
  • 32
1
vote
1 answer

Out-of-memory error when building wxWidgets

I'm currently trying to build wxHaskell as described in the Haskell wiki here. Unfortunately I always get the following error message after running the mingw32-make command: c:/mingw/bin/.../lib/gcc/mingw2/4.5.2/../../../../mingw32/bin/ld.exe: …
bzn
  • 2,362
  • 1
  • 17
  • 20
1
vote
1 answer

WxHaskell breaks command line arg functionality

I've written a program in WXHaskell, and verified that it works. Long story short, I planned for the program to be usable via GUI or by command line interface. I later went on to add command line argument processing with the GetOpts library and…
Ben
  • 205
  • 2
  • 5