Skip to content

Instantly share code, notes, and snippets.

@outworlder
Created May 24, 2011 20:42
Show Gist options
  • Select an option

  • Save outworlder/989616 to your computer and use it in GitHub Desktop.

Select an option

Save outworlder/989616 to your computer and use it in GitHub Desktop.
(use iup)
(define btn-ok
(button title: "OK"))
(define btn-activate
(button title: "Activate"))
(define btn-exit
(button title: "Exit"))
(callback-set! btn-ok "ACTION" (lambda (args)
(print "OK pressed!")))
(callback-set! btn-exit "ACTION" (lambda (args)
(exit)))
(define main-window
(dialog title: "Main Window"
(vbox
(label title: "Write stuff here:")
(textbox expand: "YES" multiline: "YES")
(hbox (fill) btn-ok btn-activate btn-exit))))
(show main-window)
(main-loop)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment