Exemple #1
0
 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()
Exemple #2
0
 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()