import Graphics.UI.WX
main :: IO ()
main = start $ do
f <- frame []
p <- panel f []
set f [layout := minsize(Size 100 100) $ widget p]
play (sound "alarm.wav")
This does not play a sound as I had hoped. This advice from around 2006…
I have a little program in haskell, using wxhaskell. It displays a window with a panel inside, containing some drawings. The problem is that the window shrinks to a very tiny size, and I have to expand it with the mouse.
How can I define correctly…
I cloned reactive-banana and tried to build the reactive-banana-wx example:
git clone http://github.com/HeinrichApfelmus/reactive-banana.git
cd reactive-banana/reactive-banana-wx
stack build
There is a stack.yaml in that directory, and it does…
I am working on writing a GUI in Haskell (and Ur/Web, but that is another story), and have several development branches using different libraries and approaches that I am working on contemporaneously. In trying to migrate some of the code I had from…
I have installed wxwidget and wxhaskell(using cabal) on windows7
and I made a test.hs
import Graphics.UI.WX
main :: IO ()
main = start gui
gui :: IO ()
gui = do f <- frame [text := "Hello"]
inp <- entry f []
out <- entry f []
…
Background: I'm working with wxHaskell's fileOpenDialog, which takes 6 non-obvious parameters (curried). My code is currently:
maybePath <- fileOpenDialog w useLastSelectedDir canSelectReadOnly
frameName possibleFiles initialDir…
I'm making a simple image downloader to learn some basic gui things in haskell. I have a staticText box that displays the file names while it's downloading them.
The problem I'm having is with this little recursive function.
saveImgs :: [String] ->…
I just can't get imageTab to run. I get a Segmentation fault: 11. This is my code. Does anybody know what to do?
import Graphics.UI.WX
import Graphics.UI.WXCore
main :: IO ()
main = start gui
gui :: IO ()
gui = do
f <- frame []
fp <-…
I am trying to statically link a wxHaskell Windows application using this ghc -static -optl-static flag. But ld.exe returns a linker error
c:/program files/haskell…
I am using wxHaskell to display a full image in a window. My code is:
import Graphics.UI.WX
import Graphics.UI.WXCore
main :: IO ()
main = start testimg
testimg :: IO ()
testimg = do
f <- frame [text := "Test Image"]
p <- panel f []
image…
Im using tutorials from wxHaskell and want to display content of table movies in the grid.
HEre is my code :
{--------------------------------------------------------------------------------
Test…
Below is a Haskell program which launches a wxHaskell notebook.
It works, except that I cannot manage to handle a page change event so as to get the index of the newly selected page. I get the previous one instead (see comment "PROBLEM" in the code…
How do I respond to keyboard events regardless of what widget currently has the focus? For example, the following program only responds to a keyboard event with a "Key pressed" message when the textCtrl isn't being focused on, which isn't what I…
usual wxHaskell program looks like
main = do
run gui
gui = do
....
....
gui must have type IO a, run has type IO a -> IO (), also there is some initialization routines in run.
I'm tring to do following:
data AppGlobals = AG {…
I am trying to cabal install a component of wxHaskell (Haskell platform 2013.2 against wxWidgets 3.0).
I was able to compile the git version with 32 bit mingw from mingw.org. But in the end, the installed wx cannot function correct, and running a…