Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. let b = Button.create ~text:"Show selected composer"
  2. ~command:(fun () ->
  3. try
  4. let n = match (List.hd (Listbox.curselection mylist)) with
  5. | `Num y -> y
  6. | _ -> failwith "pas de sélection"
  7. in
  8. Textvariable.set v (List.nth some_composers n)
  9. with _ -> (print_endline "pas de sélection"; flush stdout)
  10. )
  11. top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement