1999-12-16 04:25:11 -08:00
|
|
|
(*************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Objective Caml LablTk library *)
|
|
|
|
(* *)
|
|
|
|
(* Jacques Garrigue, Kyoto University RIMS *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1999 Institut National de Recherche en Informatique et *)
|
|
|
|
(* en Automatique and Kyoto University. All rights reserved. *)
|
|
|
|
(* This file is distributed under the terms of the GNU Library *)
|
|
|
|
(* General Public License. *)
|
|
|
|
(* *)
|
|
|
|
(*************************************************************************)
|
|
|
|
|
1999-11-30 06:59:39 -08:00
|
|
|
(* $Id$ *)
|
|
|
|
|
|
|
|
open Tk
|
|
|
|
|
1999-12-08 00:21:57 -08:00
|
|
|
let create_destroyer :parent ?(:text="Ok") tl =
|
1999-11-30 06:59:39 -08:00
|
|
|
Button.create parent :text command:(fun () -> destroy tl)
|
|
|
|
|
|
|
|
let add_destroyer ?:text tl =
|
|
|
|
let b = create_destroyer tl parent:tl ?:text in
|
|
|
|
pack [b] side:`Bottom fill:`X;
|
|
|
|
b
|