rofi.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:rofi-skyss 作者: torrottum 项目源码 文件源码
def close(self):
        """Close any open window.

        Note that this only works with non-blocking methods.

        """
        if self._process:
            # Be nice first.
            self._process.send_signal(signal.SIGINT)

            # If it doesn't close itself promptly, be brutal.
            try:
                self._process.wait(timeout=1)
            except subprocess.TimeoutExpired:
                self._process.send_signal(signal.SIGKILL)

            # Clean up.
            self._process = None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号