I am trying to use tkinter (by following a tutorial, I am learning) to create a simple text editor. Here is the code that I am having issues with:
scroll = Scrollbar(stimulator_window).pack(side=RIGHT,fill=Y)
Editor=Text(stimulator_window,width=400,height=450,yscrollcommand=scroll.set).pack(fill=BOTH)
scroll.config(command=Editor.yview)
And I am getting this error:
Editor=Text(stimulator_window,width=400,height=450,yscrollcommand=scroll.set).pack(fill=BOTH)
AttributeError: 'NoneType' object has no attribute 'set'
Does anyone have any idea why this is happening?
Python 3.10.3
Microsoft Windows [Version 10.0.22000.795]
VSCode