0
サイドにスクロールしたテキストボックス(下の画像)を実装する際に問題があります。 次のコードPythonスクロールのテキストボックス
from tkinter import *
from tkinter import ttk
root = Tk()
[enter image description here][1]
text1 = Text(root, wrap=WORD, height=10, width=50)
y_scrollbar = ttk.Scrollbar(orient=VERTICAL, command=text1.yview)
text1['yscrollcommand'] = y_scrollbar.set
y_scrollbar.grid(root, row=0, column=1)
text1.grid(row=0, column=0)
root.mainloop()
にIはy_scrollbar.grid(ルート、行= 0、列= 1)でエラーを取得し続けます。