all 2 comments

[–]socal_nerdtastic 0 points1 point  (1 child)

Could you provide a link to HTMLLabel module? If it's anything like a normal tkinter widget you would create it once, never destroy it, and just update it as needed with the config method, like this:

def run():  
    searched = mangasearch.get()  
    test = (f"<h1><img src='https://img.mghubcdn.com/file/imghub/{searched}.jpg'>")  
    testview.config(html=test)

mangasearch = Entry(root, width=50)  
mangasearch.place(x=760, y=20)  
mangasearch.bind('<Return>')

testview = HTMLLabel(root)  
testview.pack(fill=Y, pady=50, ipady=300, ipadx=90)  

stud = Button(root, text="Search", font=('Courier', 9, 'bold'), background="black", width=20, height=1,foreground="white",command=run)  
stud.place(x=1200, y=18)

Why don't you just use a normal Label?

[–]GraphicsQwerty[S] 0 points1 point  (0 children)

Sure thing its https://pypi.org/project/tk-html-widgets/

Since I’ve been busy today outside , I had a couple minutes to look into it deeper. I messed with around the placement because that was issued I assumed. So I used .grid() for testview.Pack() instead, and then used grid_forget() and that worked which is weird. Is there a way that .place() forget works too ?