How do I render *parts* of a svg file?

前端 未结 5 1162
借酒劲吻你
借酒劲吻你 2021-01-01 00:30

I want to render parts of a svg file by name but for the life of me I cannot figure out how to do so (using python + gtk).

Here\'s the svg file in question: http://d

5条回答
  •  Happy的楠姐
    2021-01-01 01:26

    I believe that what he means by 'through a DOM interface' is that since SVG is XML, you could load the SVG file in minidom, or some other Python XML parser, and extract the XML node with the specific name that you are looking for. That XML node should represent an item that can be rendered.

提交回复
热议问题