Esempio n. 1
0
 def checkUpdate(self):
     try:
         if not path.isfile(check_output(['which', 'git']).rstrip()):
             return QMessageBox.warning(self, 'git', 'git is not installed')
     except CalledProcessError:
         return QMessageBox.warning(self, 'git', 'git is not installed')
     self.LCommits.clear(), self.LOutput.clear()
     self.pb.setValue(1)
     self.btnCheck.setDisabled(True)
     self.downloaderUrl = UrllibDownload(self.UrlDownloadCommits)
     self.downloaderUrl.data_downloaded.connect(self.Get_ContentUrl)
     self.downloaderUrl.start()