Skip to content

Commit

Permalink
hyperlinks in about menu
Browse files Browse the repository at this point in the history
  • Loading branch information
odrevet committed Jul 24, 2020
1 parent 42e6893 commit 17ff53b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions about.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,28 @@
from kivy.properties import StringProperty
from kivy.uix.popup import Popup
import pkg_resources
import webbrowser


class AboutPopup(Popup):
about_text = StringProperty(f'''[b]Youtube-Dl Kivy[/b]
about_text = StringProperty(f'''[ref=https://github.com/odrevet/youtube-dl-kivy][b]Youtube-Dl Kivy[/b][/ref]
2020 Olivier Drevet
Version 0.2
Released Under the GPL-v3 License
[b]Youtube-dl[/b]
[ref=https://youtube-dl.org/][b]Youtube-dl[/b][/ref]
Version {pkg_resources.get_distribution('Youtube-dl').version}
Unlicense License
[b]Kivy[/b]
[ref=https://kivy.org][b]Kivy[/b][/ref]
Version {kivy.__version__}
MIT License
[b]Python[/b]
[ref=https://www.python.org][b]Python[/b][/ref]
Version {sys.version}
[b]Icons[/b]
by Freepik from www.flaticon.com''')
[ref=https://www.flaticon.com][b]Icons[/b][/ref]
by Freepik from www.flaticon.com''')

def on_ref_press(self, url):
webbrowser.open(url)

0 comments on commit 17ff53b

Please # to comment.