예제 #1
0
    def openUrl(self, url):
        import os

        if os.name == 'posix':
            os.system('dbus-send --type=method_call --dest=com.nokia.osso_browser \
                       /com/nokia/osso_browser/request \
                       com.nokia.osso_browser.open_new_window \
                       string:%s' % (url))
        else:
            from PyQt4.Qt import QDesktopServices

            url = QUrl(url, QUrl.TolerantMode)
            QDesktopServices.openUrl(url)
예제 #2
0
def open_url(qurl):
    if isinstance(qurl, basestring):
        qurl = QUrl(qurl)
    with SanitizeLibraryPath():
        QDesktopServices.openUrl(qurl)
예제 #3
0
def open_url(qurl):
    if isinstance(qurl, basestring):
        qurl = QUrl(qurl)
    QDesktopServices.openUrl(qurl)
예제 #4
0
def open_url(qurl):
    with SanitizeLibraryPath():
        QDesktopServices.openUrl(qurl)
예제 #5
0
파일: start.py 프로젝트: JETYIN/work_result
def openfilefolder():
    QDesktopServices.openUrl(
        QUrl(file_operate.getFullPath(constant.outDir), QUrl.TolerantMode))
예제 #6
0
def open_url(qurl):
    with SanitizeLibraryPath():
        QDesktopServices.openUrl(qurl)
예제 #7
0
def openfilefolder():
        QDesktopServices.openUrl(QUrl(file_operate.getFullPath(ConfigParse.shareInstance().getOutApkDir()), QUrl.TolerantMode))
예제 #8
0
def open_url(qurl):
    if isinstance(qurl, basestring):
        qurl = QUrl(qurl)
    QDesktopServices.openUrl(qurl)
예제 #9
0
def open_url(qurl):
    if isinstance(qurl, basestring):
        qurl = QUrl(qurl)
    with SanitizeLibraryPath():
        QDesktopServices.openUrl(qurl)