Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.5 kB
8
Indexable
Never
from tkinter import *
import tkinter.messagebox as box

window = Tk()
window.title('Подсчёт стоимости')
window.geometry('500x220')
window.resizable(width=False, height=False)

def value():
    

entry1 = Entry()
entry1.place(x = 150, y = 35)

entry2 = Entry()
entry2.place(x = 150, y = 70)

entry3 = Entry()
entry3.place(x = 150, y = 105)

entry4 = Entry()
entry4.place(x = 150, y = 140)

entry5 = Entry()
entry5.place(x = 299, y = 35)

entry6 = Entry()
entry6.place(x = 299, y = 70)

entry7 = Entry()
entry7.place(x = 299, y = 105)

entry8 = Entry()
entry8.place(x = 299, y = 140)

zag1 = Label(text = 'Наименование', font = ('Arial', 12))
zag1.place(x = 6, y = 0)

zag2 = Label(text = 'Цена (руб./кг)', font = ('Arial', 12))
zag2.place(x = 150, y = 0)

zag3 = Label(text = 'Масса для покупки (кг)', font = ('Arial', 12))
zag3.place(x = 294, y = 0)

fruit1 = Label(text = 'Апельсин', font = ('Arial', 11))
fruit1.place(x = 16, y = 35)

fruit2 = Label(text = 'Ананас', font = ('Arial', 11))
fruit2.place(x = 16, y = 70)

fruit3 = Label(text = 'Абрикос', font = ('Arial', 11))
fruit3.place(x = 16, y = 105)

fruit4 = Label(text = 'Авокадо', font = ('Arial', 11))
fruit4.place(x = 16, y = 140)

btn = Button(text = 'Произвести подсчёт', command = value)
btn.place(x = 340, y = 180)

window.mainloop()