Problem :
I am trying to make the rss reader using my tkinter library, and in one of the methods I am creating the text widget. It displays pretty fine until I try to add the scrollbars to it.
Below is my code before the scrollbars:
def txtcreate_text(tbxself, root):
tbxself.textbox = Text(root, height = 10, width = 79, wrap = 'word')
tbxself.textbox.grid(column = 0, row = 0)
Below is my code after scrollbars :
def txtcreate_text(tbxself, root):
tbxself.textbox = Text(root, height = 10, width = 79, wrap = 'word')
sbvertscroll = ttk.Scrollbar(root)
sbvertscroll.config(command=tbxself.textbox.yview)
sbvertscroll.pack(side="right", fill="y", expand=False)
tbxself.textbox.config(yscrllcommand=sbvertscroll.set)
tbxself.textbox.pack(side="left", fill="both", expand=True)
tbxself.textbox.grid(column = 0, row = 0)
This gives me below error :
"_tkinter.TclError: cannot use geometry manager pack inside .56155888 which already has slaves managed by grid on the line vertscroll.pack(side="right", fill="y", expand=False)"
Any ideas how to fix above error?