sifflet-2.3.0: Simple, visual, functional language for learning about recursion.

Safe HaskellNone
LanguageHaskell2010

Graphics.UI.Sifflet.GtkUtil

Synopsis

Documentation

showChoicesDialog :: String -> String -> [String] -> [IO a] -> IO a -> IO a Source

Show a message and a set of choices; run the action corresponding to the selected choice. The last argument is an action corresponding to the Cancel option (a Cancel button is automatically inserted) and is also used for strange actions like closing the dialog window. A good value for this might be return ().

defaultDialogPosition :: WindowPosition Source

Where to put a dialog window. Possible values are WinPosNone WinPosCenter WinPosMouse WinPosCenterAlways WinPosCenterOnParent

runDialogM :: Dialog -> a -> (a -> IO (Maybe b)) -> IO (Maybe b) Source

runDialogS :: Dialog -> a -> (a -> IO (SuccFail b)) -> IO (Maybe b) Source

Customizable framework for running a dialog

type Reader a b = a -> SuccFail b Source

addEntryWithLabel :: VBox -> (String, Entry, String) -> IO () Source

Add a labeled text entry to the vbox.