You are on page 1of 4

from tkinter import*

from math import*

interfaz=Tk()

interfaz.title("MARCOS - PATH MODEL SHORT & LONGE")

interfaz.geometry("1200x600+30+50")

interfaz.configure(background="blue")

imagen=PhotoImage(file="Logo.png")

fondo=Label(interfaz,image=imagen).place(x=0,y=0)

etiqueta1 = Label(text="PATH SHORT MODEL


LONGE",font=("arial",20,'bold'),state="disable",disabledforeground="white",width=35,bd=20,justif
y="right",bg="orange").place(x=300,y=50)

etiqueta2 = Label(text=" ALEJANDRO ROJAS CHAICO,Codigo:15160225


",font=('arial',10,'bold'),state="disabled",disabledforeground="red",width=50,bd=15,justify="right"
,bg="white").place(x=700,y=5)

lblX1=Label(text="Ingrese Te Nodo 1,2 : ").place(x=300,y=200)

X1 = DoubleVar()

txtX1=Entry(interfaz,textvariable=X1).place(x=500,y=200)

lblX2=Label(text="Ingrese Te Nodo 1,3 : ").place(x=300,y=230)

X2 = DoubleVar()

txtX2=Entry(interfaz,textvariable=X2).place(x=500,y=230)

lblX3=Label(text="Ingrese Te Nodo 1,4 : ").place(x=300,y=260)

X3 = DoubleVar()

txtX3=Entry(interfaz,textvariable=X3).place(x=500,y=260)

lblX4=Label(text="Ingrese Te Nodo 2,4 : ").place(x=300,y=290)


X4 = DoubleVar()

txtX4=Entry(interfaz,textvariable=X4).place(x=500,y=290)

lblX5=Label(text="Ingrese Te Nodo 2.5 : ").place(x=300,y=320)

X5 = DoubleVar()

txtX5=Entry(interfaz,textvariable=X5).place(x=500,y=320)

lblX6=Label(text="Ingrese Te Nodo 3,4 : ").place(x=300,y=350)

X6 = DoubleVar()

txtX6=Entry(interfaz,textvariable=X6).place(x=500,y=350)

lblX7=Label(text="Ingrese Te Nodo 3,6 : ").place(x=300,y=380)

X7 = DoubleVar()

txtX7=Entry(interfaz,textvariable=X7).place(x=500,y=380)

lblX8=Label(text="Ingrese Te Nodo 4,5 : ").place(x=300,y=410)

X8 = DoubleVar()

txtX8=Entry(interfaz,textvariable=X8).place(x=500,y=410)

lblX9=Label(text="Ingrese Te Nodo 4,6 : ").place(x=300,y=440)

X9 = DoubleVar()

txtX9=Entry(interfaz,textvariable=X9).place(x=500,y=440)

lblX10=Label(text="Ingrese Te Nodo 5,6 : ").place(x=300,y=470)

X10 = DoubleVar()

txtX10=Entry(interfaz,textvariable=X10).place(x=500,y=470)

lblX11=Label(text="Ingrese Te Nodo 6,7 : ").place(x=300,y=500)

X11 = DoubleVar()
txtX11=Entry(interfaz,textvariable=X11).place(x=500,y=500)

def path1():

path1 = abs(X1.get()+X5.get()+X10.get()+X11.get() )

lb1Respuesta = Label(text=" "+str(path1)).place(x=1050,y=200)

path1 = abs(X1.get()+X4.get()+X8.get()+X10.get()+X11.get() )

lb1Respuesta = Label(text=" "+str(path1)).place(x=1050,y=230)

path1 = abs(X1.get()+X4.get()+X9.get()+X11.get() )

lb1Respuesta = Label(text=" "+str(path1)).place(x=1050,y=260)

path1 = abs(X3.get()+X8.get()+X10.get()+X11.get() )

lb1Respuesta = Label(text=" "+str(path1)).place(x=1050,y=290)

path1 = abs(X3.get()+X9.get()+X7.get() )

lb1Respuesta = Label(text=" "+str(path1)).place(x=1050,y=320)

path1 = abs(X2.get()+X6.get()+X8.get()+X10.get()+X11.get() )

lb1Respuesta = Label(text=" "+str(path1)).place(x=1050,y=350)

path1 = abs(X2.get()+X6.get()+X9.get()+X11.get() )

lb1Respuesta = Label(text=" "+str(path1)).place(x=1050,y=380)

path1 = abs(X2.get()+X7.get()+X11.get() )

lb1Respuesta = Label(text=" "+str(path1)).place(x=1050,y=410)


lblX14=Label(text="path 1,2,5,6,7 :").place(x=850,y=200)

lblX15=Label(text=" ").place(x=1050,y=200)

lblX16=Label(text="path 1,2,4,5,6,7 :").place(x=850,y=230)

lblX17=Label(text=" ").place(x=1050,y=230)

lblX18=Label(text="path 1,2,4,6,7 :").place(x=850,y=260)

lblX19=Label(text=" ").place(x=1050,y=260)

lblX20=Label(text="path 1,4,5,6,7 :").place(x=850,y=290)

lblX21=Label(text=" ").place(x=1050,y=290)

lblX22=Label(text="path 1,4,6,7 :").place(x=850,y=320)

lblX23=Label(text=" ").place(x=1050,y=320)

lblX24=Label(text="path 1,3,4,5,6,7 :").place(x=850,y=350)

lblX25=Label(text=" ").place(x=1050,y=350)

lblX26=Label(text="path 1,3,4,6,7 :").place(x=850,y=380)

lblX27=Label(text=" ").place(x=1050,y=380)

lblX28=Label(text="path 1,3,6,7 :").place(x=850,y=410)

lblX29=Label(text=" ").place(x=1050,y=410)

btnCalcular=Button(interfaz,text="Calcular",command=path1).place(x=970,y=450)

interfaz.mainloop()

You might also like