packet.py 文件源码

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

项目:isf 作者: w3h 项目源码 文件源码
def psdump(self, filename=None, **kargs):
        """psdump(filename=None, layer_shift=0, rebuild=1)
Creates an EPS file describing a packet. If filename is not provided a temporary file is created and gs is called."""
        canvas = self.canvas_dump(**kargs)
        if filename is None:
            fname = get_temp_file(autoext=".eps")
            canvas.writeEPSfile(fname)
            subprocess.Popen([conf.prog.psreader, fname+".eps"])
        else:
            canvas.writeEPSfile(filename)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号