def run(self): time.sleep(self.sec) commands.getstatusoutput("killall " + self.prog) # # For the callbacks function # extend Main_window class (that contains the GUI) #