[wxhaskell-users] Creating an new attribute

2012-02-28 Thread Alexander McPhail
Hi, Using GTK, the following works -- | create a new 'Figure' plot -- click on the window to save plotNew :: FigureHandle -> IO DrawingArea plotNew f = do canvas <- drawingAreaNew set canvas [maybeFigure := (Just f)] return canvas

Re: [wxhaskell-users] Creating an new attribute

2012-02-28 Thread Jeremy O'Donoghue
Hi, On 28 February 2012 03:28, Alexander McPhail < haskell.vivian.mcph...@gmail.com> wrote: > Hi, > > Using GTK, the following works > > > > -- | create a new 'Figure' plot > -- click on the window to save > plotNew :: FigureHandle -> IO DrawingArea > plotNew f = do >canvas <- drawingAre