You are on page 1of 2

image create photo imag -file [file join

"C:\\Users\\VALENTINA1\\Desktop\\path4474.gif"]
label .img -text " "
.img configure -image imag
grid .img -row 0 -column 0 -columnspan 5 -sticky news
wm title . "Dogs walker Co. - Client Resume Page"
label .space_label
grid .space_label -row 1 -column 0 -columnspan 5 -sticky news
label .to_label -text "Name:"
entry .to
grid .to_label -row 2 -column 0 -sticky ew
grid .to -row 2 -column 1 -sticky ew
label .from_label -text "Dogs name:"
entry .from
grid .from_label -row 3 -column 0 -sticky ew
grid .from -row 3 -column 1 -sticky ew
label .space1_label -text "Breed:"
entry .space1
grid .space1_label -row 4 -column 0 -sticky ew
grid .space1 -row 4 -column 1 -sticky ew
label .ad_label -text "Adress:"
entry .ad
grid .ad_label -row 5 -column 0 -sticky ew
grid .ad -row 5 -column 1 -sticky ew
label .space3_label -text "Walks at month:"
entry .space3
grid .space3_label -row 6 -column 0 -sticky ew
grid .space3 -row 6 -column 1 -sticky ew
label .dyt_label -text "Days and times:"
entry .dyt
grid .dyt_label -row 7 -column 0 -sticky ew
grid .dyt -row 7 -column 1 -sticky ew
label .sz_label -text "Dogs size:"
entry .sz
grid .sz_label -row 8 -column 0 -sticky ew
grid .sz -row 8 -column 1 -sticky ew
image create photo user -file [file join
"C:\\Users\\VALENTINA1\\Desktop\\user.gif"]
label .usph -text " "
.usph configure -image user
grid .usph -row 2 -column 2 -rowspan 3 -columnspan 3 -sticky news
image create photo dog -file [file join "C:\\Users\\VALENTINA1\\Desktop\\dog.gif"]
label .dogs -text " "
.dogs configure -image dog
grid .dogs -row 6 -column 2 -rowspan 3 -columnspan 3 -sticky news
#BOTON DIVISOR + IMAGEN#
label .space4_label -text "Contact Phone:"
entry .space4
grid .space4_label -row 9 -column 0 -sticky ew
grid .space4 -row 9 -column 1 -sticky ew
button .b1 -text "Total Value" -background yellow
grid .b1 -row 10 -column 0 -columnspan 5 -sticky ew
#CALCULO#
grid [ttk::frame .c -padding "3 3 12 12"] -column 1 -row 11 -sticky nwes
grid columnconfigure . 0 -weight 1;
grid rowconfigure . 0 -weight 1

grid [ttk::entry .c.hour -width 7 -textvariable horas] -column 1 -row 12 -sticky we


grid [ttk::label .c.pesos -textvariable pesos] -column 1 -row 13 -sticky we
grid [ttk::button .c.calc -text "Calculate" -command calculate] -column 1 -row 14
-sticky w
grid [ttk::label .c.flbl -text "Horas"] -column 2 -row 12 -sticky w

grid [ttk::label .c.islbl -text "Total"] -column 0 -row 13 -sticky w

grid [ttk::label .c.mlbl -text "Pesos"] -column 2 -row 13 -sticky w


grid [ttk::label .c.glbl -text "N horas"] -column 0 -row 12 -sticky w
foreach w [winfo children .c] {grid configure $w -padx 12 -pady 5}
focus .c.hour
bind . <Return> {calculate}
proc calculate {} {
if {[catch {
set ::pesos [expr {round($::horas*3500*10000.0)/10000.0}]
}]!=0} {
set ::pesos ""
}
}
image create photo dogs -file [file join "C:\\Users\\VALENTINA1\\Desktop\\pds.gif"]
label .dogss -text " "
.dogss configure -image dogs
grid .dogss -row 11 -column 2 -rowspan 2 -sticky news
image create photo food -file [file join "C:\\Users\\VALENTINA1\\pdg.gif"]
label .food -text " "
.food configure -image food
grid .food -row 11 -column 0 -rowspan 2 -sticky news
#Check botton#
button .wp -text "Ways of Payment" -background yellow
grid .wp -row 12 -column 0 -columnspan 5 -stick news
checkbutton .cd -text "Debit Card"
checkbutton .ce -text "Credit Card"
grid .cd -row 13 -column 1 -sticky nwes
grid .ce -row 14 -column 1 -sticky nwes
button .pn -text "Pay Now" -backgroun white
grid .pn -row 15 -column 1 -sticky nwes

You might also like