Drawing electronic circuits or schematics with schemdraw Python package in a wxPython GUI
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
Hello
I would like to draw a simple electronic circuit diagram in a wxPython GUI.
The circuit diagram is created programmatically using the schemdraw package
(see here: https://schemdraw.readthedocs.io/en/latest/index.html).
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.
I am sure there are other ways (maybe via matplotlib), but I don't know
where (and how) to look. Any pointers or ideas would be welcome!
Thanks!
--
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/ab35f84a-edbb-4852-811d-c4820776aec6n%40googlegroups.com.