'Clickable hyperlink on Pandas Dataframe and pycharm
I have a code that opens a csv file that has playlist and url links to music. When the frame opens on a tkinter window while using pandas dataframe the url hyperlinks are not clickable.. I have tried doing the following from this clickable link in pandas dataframe
The code i have is the following:
df = pd.DataFrame(data, columns=['Title', 'Link'])
cols = list(df.columns)
tree = ttk.Treeview(my_w)
tree.pack()
tree["columns"] = cols
for i in cols:
tree.column(i, anchor="w")
tree.heading(i, text=i, anchor='w')
for index, row in df.iterrows():
tree.insert("", 0, text=index, values=list(row))
but the Link column is not clickable
Solution 1:[1]
If you're using Tkinter to create a desktop app, you'll need a way to send a hyperlink to your web browser. Have you tried this example that uses the web browser package?
I would suggest getting a single clickable hyperlink to work outside of the pandas data frame first. Once that's functioning properly, insert the working concept in your iterrows loop.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Yeshwanth N |

