示例#1
0
 def on_discoveryList_itemDoubleClicked(self, index):
     QtGui.QDesktopServices.openUrl(QtCore.QUrl(index.data(ROLE_DEVICE)))
示例#2
0
 def on_discoveryBrowser_clicked(self):
     data = self.discoveryList.selectionModel().selectedRows()[0]
     url = "http://" + data.data(DATA_ADDR)
     QtGui.QDesktopServices.openUrl(QtCore.QUrl(url))