örneğin ben şu kodu kulandım ama kulanıcıdan nasıl entry miktarı isticeğimi bulamamdım
from tkinter import *
pencere = Tk()
pencere.title(".")
pencere.geometry(“400x400”)
yaz = Label(text=" Hoşgeldiniz ",font=“Times 15 italic”)
yaz.pack(expand=NO,side=TOP)
def a1():
yaz.destroy()
buton.destroy()
def a():
yaz2 = Label(text=“Gelen tanker miktarını ekleyin:”,font=“Times 15 italic”)
yaz2.pack(expand=NO,side=TOP)
def b3():
e = Entry(width=(30),cursor=(“bottom_side”))
e.pack(expand=NO,side=TOP)
class class1():
def b():
f=[]
n=int(e.get())
for i in range(0,n):
b1 =int(e.get())
f.append(b1)
g=sum(f)/n
yaz3 = Label(text = g)
yaz3.pack(expand=NO)
def b2():
buton2 = Button(text=“sonraki”,command = b3)
buton2.pack(side=TOP)
def q():
a1()
a()
b3()
b2()
buton = Button(text = “Başla”,command = q)
buton.pack(side=TOP,expand=YES)