I have the following example code:
class A():
def foo(self):
def onButtonPress():
progress.grid()
progress.start()
progress = ttk.Progressbar(
root,
orient="horizontal"
mode="indeterminate")
progress.grid(
row=3,
column=0,
columnspan=2,
sticky="nswe")
# Make it invisible at first
progress.grid_forget()
When I run it, it's invisible at first, but once started, the grid is forgotten meaning it's just thrown in without the formatting. I replace the grid() command in onButtonPress with the same code, it works and fills out the columns. I was following this solution. Any ideas what's wrong?
Edit: Rookie mistake, was using grid_forget instead of grid_remove. grid_remove fixed it all.