Safe Haskell | None |
---|---|
Language | Haskell98 |
This module provides a ''button'' widget type which has a
button-like appearance and generates ''press'' events. Button
s
are pressed when a user presses Enter while the button has focus.
Documentation
buttonWidget :: Button -> Widget Padded Source
Get a reference to the button's widget to lay it out.
onButtonPressed :: Button -> (Button -> IO ()) -> IO () Source
Register a handler for the button press event.
pressButton :: Button -> IO () Source
Programmatically press a button to trigger its event handlers.
setButtonText :: Button -> Text -> IO () Source
Set the text label on a button.