def search(self, event): self.text.Clear() l = self.text1.GetValue() lst = 'pacman -Ss '+ l txt = subproc.noSudoList(lst) if txt: self.text.write(txt) else: self.text.write('SORRY, NOTHING EXISTS!') self.text1.Clear()
def hasInstall(self, event): self.text.Clear() l = self.text1.GetValue() lst = 'pacman -Qs '+ l txt = subproc.noSudoList(lst) if txt: self.text.write(txt) else: self.text.write('SORRY, NO THING has installed!') self.text1.Clear()