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)
def open_url(qurl): if isinstance(qurl, basestring): qurl = QUrl(qurl) with SanitizeLibraryPath(): QDesktopServices.openUrl(qurl)
def open_url(qurl): if isinstance(qurl, basestring): qurl = QUrl(qurl) QDesktopServices.openUrl(qurl)
def open_url(qurl): with SanitizeLibraryPath(): QDesktopServices.openUrl(qurl)
def openfilefolder(): QDesktopServices.openUrl( QUrl(file_operate.getFullPath(constant.outDir), QUrl.TolerantMode))
def open_url(qurl): with SanitizeLibraryPath(): QDesktopServices.openUrl(qurl)
def openfilefolder(): QDesktopServices.openUrl(QUrl(file_operate.getFullPath(ConfigParse.shareInstance().getOutApkDir()), QUrl.TolerantMode))
def open_url(qurl): if isinstance(qurl, basestring): qurl = QUrl(qurl) QDesktopServices.openUrl(qurl)
def open_url(qurl): if isinstance(qurl, basestring): qurl = QUrl(qurl) with SanitizeLibraryPath(): QDesktopServices.openUrl(qurl)