Python Forum
How to turn screen output into clickable hyperlinks
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to turn screen output into clickable hyperlinks
#1
Hello, I am writing a program that will output a list of song titles. I want a user to be able to click a song title and then display the particular song on the screen. How do I make the titles clickable hyperlinks.

Here is part of my code:

import re
import os
os.chdir('c://users//user/Documents')
songs = open('GloriousSongsXML.txt').read()
titles = re.findall('<title>(.*)</title', songs)
for item in titles:
     print (item)
Thank you.
Windros
Reply


Messages In This Thread
How to turn screen output into clickable hyperlinks - by windros - Jan-21-2019, 04:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Exceeding the value - turn on the relay. stsxbel 0 193 May-27-2024, 07:18 PM
Last Post: stsxbel
Sad "Disabled" Buttons Still Clickable. Nd4SpdSe 3 513 Mar-13-2024, 07:44 AM
Last Post: laughorchestra
  How to "tee" (=split) output to screen and into file? pstein 6 1,664 Jun-24-2023, 08:00 AM
Last Post: Gribouillis
  How do i turn my program into a .exe julio2000 1 1,993 Feb-14-2020, 08:18 PM
Last Post: snippsat
  Turn py into exe tester21 4 3,235 Jul-22-2019, 04:31 PM
Last Post: nilamo
  wn = turtle.screen() AttributeError: module 'turtle' has no attribute 'screen' Shadower 1 6,321 Feb-06-2019, 01:25 AM
Last Post: woooee
  Not sure how to turn this into a loop iamgonge 1 2,185 Dec-05-2018, 11:03 PM
Last Post: anandoracledba
  How to run a python file from html hyperlinks dhinahar 0 2,430 Jul-04-2018, 05:07 PM
Last Post: dhinahar
  Having my output links become clickable bigmit37 8 30,841 May-25-2017, 08:17 PM
Last Post: bigmit37

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020