Questions tagged [wxhaskell]

A Haskell binding for wxWidgets

WxHaskell is a GUI library for Haskell built ontop of wxwidgets

83 questions
4
votes
0 answers

Dynamically adding and removing widgets

I'd like to dynamically add and remove widgets in a wxHaskell application. My problems are: the window is resizable, but when it's manually made larger, clicking the "more" button shows it quickly flashing back to the minimum size. Without the…
pascal
  • 2,623
  • 2
  • 20
  • 30
3
votes
1 answer

Distributing wxHaskell based application in Windows

For a wxHaskell based application distributed on Windows, can I distribute the necessary WX DLLs right alongside the application, without having to do a separate install of WX? I want to be able to distribute the application as a zip file and not…
davetapley
  • 17,000
  • 12
  • 60
  • 86
3
votes
2 answers

Embedded images in wxHaskell

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…
heyitsbmo
  • 1,715
  • 1
  • 14
  • 29
3
votes
1 answer

Unable to runhaskell my wxHaskell program that works in GHCI

I am trying to create a HelloWorld.exe on Windows 7 that demonstrates a very simple wxHaskell program I have found online. The code is below: module HelloWorldWX where import Graphics.UI.WX main :: IO () main = start hello hello :: IO () hello…
maple_shaft
  • 10,435
  • 6
  • 46
  • 74
3
votes
4 answers

Keep track of the program variables in Haskell like imperative programs

I'm having a hard time finding out how to make something change every time the user interacts with my program. It's hard to explain so here's an example (Haskell + wxhaskell): simulate :: Int -> Frame () -> IO () simulate qNr window = do fdata <-…
user394861
  • 31
  • 1
3
votes
2 answers

Haskell cabal install wx: missing C library wx_gtk2u_webview-3.0

I am trying to install wx by cabal install wx Configuring wxc to build against wxWidgets 3.0 setup: Missing dependency on a foreign library: * Missing C library: wx_gtk2u_webview-3.0 This problem can usually be solved by installing the system…
Nishant
  • 83
  • 1
  • 5
3
votes
3 answers

wxhaskell asynchronous updates

I am using WxHaskell to graphically show the state of a program that advertises state updates using TCP (which I decode using Data.Binary). When an update is received, I want to update the display. So I want the GUI to update its display…
Alex
  • 1,581
  • 2
  • 18
  • 31
3
votes
0 answers

wxHaskell and Reactive-Banana staticText not Updating Size When Text Changes

I'm trying to build a simple UI as an exercise in learning wxHaskell and Reactive Banana, but I've run into a wall trying to solve a seemingly simple problem. Specifically, I'd like to resize the window to fit around a label when the label's text is…
Rose Kunkel
  • 3,102
  • 2
  • 27
  • 53
2
votes
1 answer

wxHaskell labels can't display full text

I'm testing wxHaskell on Windows XP using the "Hello World" here: http://www.haskell.org/haskellwiki/WxHaskell/Quick_start But when it runs on my machine, all the text doesn't display. For instance, "Quit" will just display "Q". Any Ideas?
Eric Wong
  • 524
  • 9
  • 21
2
votes
1 answer

stack is unable to resolve dependencies instaling wx

I am trying to get wx installed using stack. I don't have Haskell installed globally and use stack new new-template to create a new project. Next, within the directory I run stack install wx and get an error message: In the dependencies for…
Lemoi
  • 149
  • 9
2
votes
1 answer

Set display font family in wxhaskell?

I'm trying to build a little program to learn some wxHaskell, a haskell library for wxwidgets. It would be beneficial for this particular one if I could set the font of a text field to monospaced, but I have no idea how to do that if it is…
neptun
  • 145
  • 4
2
votes
0 answers

Updating visibility of dynamically created content

Duplicating this from github as per @HeinrichApfelmus's suggestion: This may be just a usage error on my part, but I am noticing a strange phenomenon when trying to set up conditional visibility/layout for dynamically created UI elements (in WX of…
archaephyrryx
  • 415
  • 2
  • 10
2
votes
1 answer

How to use stack with nix to build wxHaskell project?

I'm trying to set up a build environment for wxHaskell using Nix and Stack. I've installed wxWidgets-3.0.2 through nix. This is the relevant portion from by .cabal file executable hellowx-exe hs-source-dirs: app main-is: …
2
votes
1 answer

wxHaskell fails because it depends on wx_macu-2.8

I install wxWidgets with macports then ran the command: sudo cabal install wx which output included: /bin/sh: wxdirect: command not found /bin/sh: wxdirect: command not found /bin/sh: wxdirect: command not found /bin/sh: wxdirect: command not…
None
  • 3,875
  • 7
  • 43
  • 67
2
votes
1 answer

wxHaskell not find module `Distribution.Compat.Exception'

I am trying install wxhaskell on ubuntu (and I have already installed wxwidget and it works well in codeblock) I run cabal install wxc in terminal and here is output /tmp/wxc-0.92.1.1-2711/wxc-0.92.1.1/Setup.hs:25:8: Could not find module…
zjyfdu
  • 65
  • 1
  • 8