Skip to content

Commit

Permalink
Add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
gounux committed Apr 13, 2024
1 parent 78e6771 commit 5e5dd90
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qtribu/toolbelt/commons.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,12 @@


def open_url_in_browser(url: str) -> bool:
"""Opens an url in a browser using user's desktop environment
:param url: url to open
:type url: str
:return: true if successful otherwise false
:rtype: bool
"""
return QDesktopServices.openUrl(QUrl(url))

0 comments on commit 5e5dd90

Please sign in to comment.