def run(self):
time.sleep(10) # wait after launch before beginning to check for PID
while psutil.pid_exists(self.masterPID):
time.sleep(2)
sys.stderr.write("\n\n----\nlooks like python session that owned this instance of the " +
"ZTV gui is gone, so disposing of the window\n----\n")
wx.CallAfter(pub.sendMessage, 'kill-ztv', msg=None)
评论列表
文章目录