How to draw SVG src as image in GTK3 and python?
My code is as follows:
img = '''<?xml version="1.0" encoding="UTF-8"?><svgwidth="50"height="50"xmlns="http://www.w3.org/2000/svg"><!-- Created with SVG-edit - http://svg-edit.googlecode.com/ --><g><title>Layer 1</title><circlestroke-width="3"stroke="#1a1a1a"fill="#dfdbd2"r="16"cy="25"cx="25"/><pathstroke-width="0"fill="#1a1a1a"d="m25,9a16,16 0 0 0 0,32l0,-1.5a18,18 0 0 0 0,-29l0,-1.5z"/></g></svg>'''How can I display it in the gtk3 window as an image to use this?
Image=Gtk.Image()Image.set_from_pixbuf(img)and excuse me for my bad english :)
+3
No one has answered this question yet.
See similar questions:
or similar: