1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
| from tkinter import *
fen1 = Tk()
fen1.title('Rentrer le nombre de plats')
Label(fen1, text ='Tartare').grid(sticky =E)
Label(fen1, text ='Tranche').grid(sticky =E)
Label(fen1, text ='Truite').grid(sticky =E)
Label(fen1, text ='Tourton').grid(sticky =E)
Label(fen1, text ='Croissant').grid(sticky =E)
Label(fen1, text ='Amelo').grid(sticky =E)
Label(fen1, text ='Raido)').grid(sticky =E)
Label(fen1, text ='Raidri').grid(sticky =E)
Label(fen1, text ='Raidrizo').grid(sticky =E)
Label(fen1, text ='Raidriz51').grid(sticky =E)
Label(fen1, text ='Corni').grid(sticky =E)
Label(fen1, text ='Fit').grid(sticky =E)
Label(fen1, text ='Fit0').grid(sticky =E)
Label(fen1, text ='Fit1').grid(sticky =E)
Label(fen1, text ='Raitical').grid(sticky =E)
Label(fen1, text ='Semelle').grid(sticky =E)
Label(fen1, text ='Teav').grid(sticky =E)
Label(fen1, text ='TeVr').grid(sticky =E)
Label(fen1, text ='Tevv').grid(sticky =E)
Label(fen1, text ='Autres pièces').grid(sticky =E)
e1 = Entry(fen1)
e2 = Entry(fen1)
e3 = Entry(fen1)
e4 = Entry(fen1)
e5 = Entry(fen1)
e6 = Entry(fen1)
e7 = Entry(fen1)
e8 = Entry(fen1)
e9 = Entry(fen1)
e10 = Entry(fen1)
e11 = Entry(fen1)
e12 = Entry(fen1)
e13 = Entry(fen1)
e14 = Entry(fen1)
e15 = Entry(fen1)
e16 = Entry(fen1)
e17 = Entry(fen1)
e18 = Entry(fen1)
e19 = Entry(fen1)
e20 = Entry(fen1)
def saisie():
Tartare=e1.get()
Tranche = e2.get()
Truite = e3.get()
Tourton = e4.get()
Croissant = e5.get()
Amelo = e6.get()
Raido = e7.get()
Raidri = e8.get()
Raidrizo = e9.get()
Raidriz51 = e10.get()
Corni = e11.get()
fit = e12.get()
fit0 = e13.get()
fit5 = e14.get()
Raidi = e15.get()
Semelle = e16.get()
TeVv = e17.get()
TeVr= e18.get()
TeV0 = e19.get()
Autre = e20.get()
e1.grid(row =0, column =1)
e2.grid(row =1, column =1)
e3.grid(row =2, column =1)
e4.grid(row =3, column =1)
e5.grid(row =4, column =1)
e6.grid(row =5, column =1)
e7.grid(row =6, column =1)
e8.grid(row =7, column =1)
e9.grid(row =8, column =1)
e10.grid(row =9, column =1)
e11.grid(row =10, column =1)
e12.grid(row =11, column =1)
e13.grid(row =12, column =1)
e14.grid(row =13, column =1)
e15.grid(row =14, column =1)
e16.grid(row =15, column =1)
e17.grid(row =16, column =1)
e18.grid(row =17, column =1)
e19.grid(row =18, column =1)
e20.grid(row =19, column =1)
bouton = Button(fen1, text = 'OK', command = saisie)
bouton.grid(row = 20, column = 1)
boutonQuit = Button(fen1,text='Quitter',command=fen1.destroy)
boutonQuit.grid(row=20, column=2)
fen1.mainloop()
#%%
if Tartare + Tranche + Truite + Tourton + Croissant + Amelo + Raido + Raidri + Raidrizo + Raidriz51 + Corni + fit + fit0 + fit5 + Raidi + Semelle + TeVv + TeVr + TeV0 + Autre >=1:
#%%
from tkinter import *
def Condition():
DS = float(ds.get())
Step = float(st.get())
Price = float(pr.get())
fen2 = Tk()
fen2.title('Vérifier les valeurs')
Label(fen2, text ='Densitée').grid(sticky =E)
Label(fen2, text ='tips').grid(sticky =E)
Label(fen2, text ='Price ').grid(sticky =E)
# ],["";"";""],["";;])
ds = Entry(fen2)
st = Entry(fen2,textvariable ='2')
pr = Entry(fen2,textvariable ='8')
ds.grid(row =0, column =1)
st.grid(row =1, column =1)
pr.grid(row =2, column =1)
bou1 = Button(fen2, text='Quitter', command = fen2.destroy)
bou1.grid(row =3, column=2)
bou2 = Button(fen2,)
fen2.mainloop() |
Partager