From 5e5dd90ef0840112b466eafd61b947f8f2e90c9d Mon Sep 17 00:00:00 2001 From: gounux Date: Sat, 13 Apr 2024 20:16:28 +0200 Subject: [PATCH] Add docstring --- qtribu/toolbelt/commons.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qtribu/toolbelt/commons.py b/qtribu/toolbelt/commons.py index 20f54437..1bc4f262 100644 --- a/qtribu/toolbelt/commons.py +++ b/qtribu/toolbelt/commons.py @@ -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))