I'm just starting out and this is a bit newbie: So I have a Sorting Visualizer app with Tkinter.
I want to pack and unpack(Hide) a widget programmatically After a certain function finishes.
here is the code for one of the sections that I want to have this functionality:
def pick_algo(curr_algo,lines,canv,root,ind):
#appear
ind.pack(side = RIGHT)
#some function
val = curr_algo['text']
algos[val](lines,canv,root,0,len(lines) if val != 'Quick Sort' else len(lines)-1)
#hide
ind.pack_forget()
what can be the issue?
for some reason it works for the first time where ind(indicator) apears then hides after function but after subsequent calls the label doesnt apear any more.
I tried using using root.update and update_idletasks
everywhere inside but I couldnt make it work.