show #:selection example
This commit is contained in:
parent
55ce63ae71
commit
35598805e7
9
run.scm
9
run.scm
|
@ -79,17 +79,20 @@
|
|||
(nixo
|
||||
(format #f "You chose the element number: ~a\n"
|
||||
(menu
|
||||
'("Yes" "Maybe" "No way"))))
|
||||
'("Yes" "Maybe" "No way")
|
||||
#:selection 1)))
|
||||
(nixo "Click it again!")
|
||||
(nixo
|
||||
(format #f "You chose the element: ~a\n"
|
||||
(menu
|
||||
'(("Yes") ("Maybe") ("No way")))))
|
||||
'(("Yes") ("Maybe") ("No way"))
|
||||
#:selection 0)))
|
||||
(nixo "Once more!")
|
||||
(nixo
|
||||
(format #f "You chose the element: ~a\n"
|
||||
(menu
|
||||
'(("Yes" . yep) ("Maybe" . maybe) ("No way" . nope)))))
|
||||
'(("Yes" . yep) ("Maybe" . maybe) ("No way" . nope))
|
||||
#:selection 2)))
|
||||
*unspecified*))
|
||||
scene)
|
||||
(init-menu! #s32(100 100) #s32(0 50) simple-button #:scene scene)
|
||||
|
|
Loading…
Reference in New Issue