So I have a list of text I'm looping in a frame one by one. I want some of the text (ex: 'apple') to have a hidden hyperlink attached to the text or just the hyperlink itself. I know we can use a webbrowser module to open one link. Is there a way to add links to each text in the list?
qlist.py
qtextnlinks = ['apple', 'orange', 'banana', 'grapes', 'https://www.youtube.com/watch?v=yPGK1-6m_j4']
mainprogram.py
frame_p = tk.Frame(root)
frame_p.place(relx = 0.5, rely = 0.9, anchor = "center")
label_p = tk.Label(frame_p,font="helvetica 14", wraplength=qwidth, justify="center")
label_p.pack()
def after():
label_p.config(text=random.choice(qlist.qtextnlinks))
root.after(15000, after)
after()