6 let window = GWindow.window () in
7 window#connect#destroy ~callback:Main.quit;
9 let calendar = GMisc.calendar ~packing:window#add () in
10 calendar#connect#day_selected ~callback:
12 let (year,month,day) = calendar#date in
13 Printf.printf "You selected %d/%d/%02d.\n"
14 day (month+1) (year mod 100);