def open_url(url, browser=api.config.open_urls_in): if browser in [None, 'default']: QDesktopServices.openUrl(QUrl(url)) else: import webbrowser try: browser = webbrowser.get(browser) except webbrowser.Error: import subprocess subprocess.call([browser, url]) else: browser.open_new_tab(url)
def help(self): QDesktopServices.openUrl(QUrl('https://github.com/blaxpirit/sixcells/tree/v{}#readme'.format(__version__)))
def help(): QDesktopServices.openUrl( QUrl('https://github.com/blaxpirit/sixcells/#readme'))
def help(): QDesktopServices.openUrl(QUrl('https://github.com/blaxpirit/sixcells/#readme'))
def help(self): QDesktopServices.openUrl(QUrl('https://github.com/oprypin/sixcells/tree/v{}#readme'.format(__version__)))