home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 46
/
Amiga_Dream_46.iso
/
Linux
/
Magazine
/
Tcltk
/
dialogs.tcl
< prev
next >
Wrap
Text File
|
1997-11-13
|
1KB
|
37 lines
# commande "a propos"
proc AboutCommand {} {
# interface de la boite de dialog "a propos"
toplevel .aboutdlg
wm geometry .aboutdlg 230x200
wm title .aboutdlg "About Tkcalc..."
frame .aboutdlg.frame1 -bd 2 -relief sunken
message .aboutdlg.frame1.title -justify center -text "Tkcalc 0.7" -width 200
frame .aboutdlg.frame2 -bd 2 -relief groove
message .aboutdlg.frame2.copyright -text "(C) 1997, Fred Pesch.\nDistributed under the Gnu General Public Licence" -relief sunken -width 200
button .aboutdlg.frame2.okbtn -text "Ok" -command AboutOkCommand
# affichage
pack .aboutdlg.frame1 -side top -expand true -padx 20 -pady 4
pack .aboutdlg.frame1.title -ipadx 20 -ipady 14
pack .aboutdlg.frame2 -side bottom -expand true -fill x -padx 20 -pady 4
pack .aboutdlg.frame2.copyright -side top -expand true -fill x
pack .aboutdlg.frame2.okbtn -side bottom
}
proc AboutOkCommand {} {
destroy .aboutdlg
}