def commandExecute(self): command = str(self.CLineEdit.text()) if command == 'test' : self.CLineEdit.setText("") return TooltipManage.create('Command', "test", "Some text") if 'https://github.com/' in command: return self.CLineEdit.setText(command.replace('https://github.com/', 'https://*****:*****@github.com/')) self.createCommand(command)
def executeCommandFinished(self, command, result): TooltipManage.create('Command', command, result)