Re: Re: displaying dxf drawings in a GUI
"'Chris Barker' via wxPython-users" <[email protected]>
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <CALGmxEJigfJw8hbb1RspK==a6ENC+6HWmraLv_E_wg0n=fKOsA@mail.gmail.com> |
you were right floatcanvas might well give you most of what you need out of the box. It does not currently have a spline path -- only the old spline that's in wxDC. But it would not be too hard to add a general path object. I think it would be a better fit than matplotlib, which is very much deigned to plot things, and provides a lot to support that, but is kinds complicated for more general drawing needs. Though the SVG render may cover it for you too. FloatCanvas far pre-dates that! -Chris On Fri, Nov 22, 2019 at 10:58 PM Jakab Gábor <[email protected]> wrote: > > Hi Niki, > > Thanks, this is definely interesting! It seems Herr Moitzi develops stuff > just for me :-) > > > On Thursday, November 21, 2019 at 9:52:43 AM UTC+1, niki wrote: >> >> On 20.11.19 г. 23:37 ч., Robin Dunn wrote: >> > I recently added a SVG renderer to wxPython 4.1 so if there is a good >> > way to convert dxf files to svg files that would be one way you could >> > go. OTOH, if you're able to decompose the dxf files into paths, curves >> > and simple shapes then you could take a similar approach for rendering >> > it to a wx.GraphicsContext. See >> > >> https://github.com/wxWidgets/Phoenix/blob/master/wx/svg/__init__.py#L147 >> >> Combination of ezdxf + svgwrite can help. >> >> https://github.com/mozman >> >> Niki >> > -- > 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/3c75c970-458f-4164-b570-d7a7e0946822%40googlegroups.com > <https://groups.google.com/d/msgid/wxpython-users/3c75c970-458f-4164-b570-d7a7e0946822%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [email protected] -- 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/CALGmxEJigfJw8hbb1RspK%3D%3Da6ENC%2B6HWmraLv_E_wg0n%3DfKOsA%40mail.gmail.com.