from tkinter import*
pencere=Tk()
pencere.geometry('555x555')
pencere.title('doktor optiyones okuyucu')
giris=Entry()
giris.pack(side=LEFT)
def bul():
al=giris.get()
global ac
ac=open(al,"a")
def yaz():
al=giris.get()
ac.write(al)
ac.close()
dugme1=Button(text='aç',command=bul)
dugme1.pack()
dugme2=Button(text='yazdir',command=yaz)
dugme2.pack()
mainloop()
pencere=Tk()
pencere.geometry('555x555')
pencere.title('doktor optiyones okuyucu')
giris=Entry()
giris.pack(side=LEFT)
def bul():
al=giris.get()
global ac
ac=open(al,"a")
def yaz():
al=giris.get()
ac.write(al)
ac.close()
dugme1=Button(text='aç',command=bul)
dugme1.pack()
dugme2=Button(text='yazdir',command=yaz)
dugme2.pack()
mainloop()
