I'm having some issues with a ScrolledText widget in tkinter.
The Scrollbar is not showing up.
Here is my code:
from tkinter import *
import os
from tkinter.scrolledtext import ScrolledText
#window variables
win = Tk()
win.title('TextS')
win_width = 600
win_height = 400
win.geometry('{}x{}'.format(win_width,win_height))
#widgets
title = Label(win, text="TextS", font=("Helvetica", 36, "bold"), bg="lightgray")
title.grid(row=0, column=0)
st = ScrolledText(win, width=400, height=300)
st.grid(column=1, pady=10, padx=10)
#main loop
while True:
win.update()
Some Screen Shots:
With .grid() what I want to use: screenshot
With .pack() which I do not want to use: screenshot (Has scroll bar)
Sorry if this is a noobie mistake, Thank you!
Have a great day! :)

ScrolledTextuseswidthandheightin chars, not in pixels - so you create very big widget and scroller doesn't fit in window. You have to use smaller values.griddoesn't use free space when you resize (all of them use valueweight=0. You have to use biggerweightto inform which row and column has to use this free space when you resize.Now it will resize cells in row 1 and column 1 but it doesn't resize widgets in cells. Widgets needs
grid(..., sticky='nsew')to resize in all directions.PEP 8 -- Style Guide for Python Code