def stop(self): if self.popen: self.popen.terminate() self.popen = None # TODO: call popen.kill() process.pkill(self.app_path)
def kill_gedit(): print('kill gedit now') process.pkill(app_path) app.exit()