Re: Drawing electronic circuits or schematics with schemdraw Python package in a wxPython GUI
Dietmar Schwertberger <[email protected]> Thu, 25 Nov 2021 19:24:22 +0100
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
On 25.11.2021 09:37, [email protected] wrote: > At first I thought of the following approach: > (1) Extract the SVG bytes from the schemdraw object: bytes = > drawing.get_imagedata('svg') > (2) Use this with wx.svg.SVGimage.CreateFromBytes(bytes) to create the > SVGimageBase for use with wxPython > However, it seems wxPython version 4.1 is required for step (2), while > I am stuck with 4.0 on my machine. Why do you want to convert to SVG first? Schemdraw get_imagedata() seems to support PNG export. Regards, Dietmar -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/c40524c6-84d7-56f7-ee4b-75cf0fd09dbc%40schwertberger.de.