Merhaba ben Textbox a girilen içeriği terminale yazdırmak istiyorum ama hata alıyorum.
import tkinter as tk
import webbrowser as wb
def yazdır():
print(giriş.get())
pencere = tk.Tk()
pencere.geometry("670x500")
pencere.title("Yazdır")
pencere.resizable(width=False, height=False)
pencere.configure(bg='black', cursor="star")
giriş = tk.Text(bg="grey", fg="black")
giriş.place(x=15,y=15)
tuş = tk.Button(text="Yazdır", bg="grey", command=yazdır)
tuş.place(x=610,y=450)
pencere.mainloop()
xception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\tkinter\__init__.py", line 1705, in __call__
return self.func(*args)
File "c:/Users/siasasw/Desktop/python/ogren/tk.py", line 4, in yazdır
print(giriş.get())
TypeError: get() missing 1 required positional argument: 'index1'
PS C:\Users\siasasw\Desktop\python