예제 #1
0
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)
예제 #2
0
 def help(self):
     QDesktopServices.openUrl(QUrl('https://github.com/blaxpirit/sixcells/tree/v{}#readme'.format(__version__)))
예제 #3
0
def help():
    QDesktopServices.openUrl(
        QUrl('https://github.com/blaxpirit/sixcells/#readme'))
예제 #4
0
파일: common.py 프로젝트: Oaz/sixcells
def help():
    QDesktopServices.openUrl(QUrl('https://github.com/blaxpirit/sixcells/#readme'))
예제 #5
0
 def help(self):
     QDesktopServices.openUrl(QUrl('https://github.com/oprypin/sixcells/tree/v{}#readme'.format(__version__)))