Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

best GUI library for vector drawing program

197 views
Skip to first unread message

chewie54

unread,
Aug 17, 2007, 9:27:24 AM8/17/07
to
Hello,

What would be the best cross-platform GUI library to use for a vector
based CAD program ( something like Visio on Windows ) WxWidgets,
Tk, PyQt, Java Swing, Java SWT,???? I need the capibility to
draw and edit in a window that looks like a page of paper so WYSIWYG
is very important, and I need to save the drawings in vector based
file formats like PS, EPS, SVG, as well as image formats like jpg,
png, and gif. Also, the images need to be high resolution so that
they can be pasted into various other programs in Windows OS, and
Linux OS, and the Mac OS.

Thanks in advance,
Dan

Victor Bazarov

unread,
Aug 17, 2007, 9:45:18 AM8/17/07
to

You might actually consider asking in the 'comp.graphics' hierarchy
instead of the language newsgroups.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


chewie54

unread,
Aug 17, 2007, 10:04:46 AM8/17/07
to

That group doesn't seem to be active anymore.

kyos...@gmail.com

unread,
Aug 17, 2007, 10:12:15 AM8/17/07
to

I think wxPython in conjunction with PIL and/or matplotlib could work.
I'm pretty sure the people on the wxPython user's list have done
vector graphics using those other libraries.

Mike

pi...@pippopippo.pp

unread,
Aug 17, 2007, 11:50:15 AM8/17/07
to
I used wxWidgets for a work like that. I found it quite easy to use and
I found simple to create a Gui with wxdev which is quite rad.
bye
Pier Paolo

chewie54

unread,
Aug 17, 2007, 12:07:04 PM8/17/07
to

Also, I forgot to mention that it must have scripting capabilities so
and I would like to embed a Tcl or Python interpreter.

Jeremy Sanders

unread,
Aug 17, 2007, 12:08:29 PM8/17/07
to
chewie54 wrote:

PyQt/Qt4 is capable of that (SVG export was added in Qt4.3).

I have a graph drawing application based around it (Veusz).

If you base everything around QPainter, you'll be able to write to any of
those output formats (including eps and pdf), and bitmaps. Antialiasing is
optional for bitmap formats.

Jeremy

--
Jeremy Sanders
http://www.jeremysanders.net/

chewie54

unread,
Aug 17, 2007, 1:52:35 PM8/17/07
to

I should have also mentioned that is for a commercial application.
That
doesn't rule Qt or PyQt out, but this is a startup company with very
little income so my first choice would be to use some GUI library
that
is free to use for commercial apps.


Thanks again,
Dan


Thomas Kellerer

unread,
Aug 17, 2007, 2:12:30 PM8/17/07
to

The NetBeans Platform offers a nice module for this. NetBeans itself uses it for
UML, BPEL and ERD modelling and other features (such as the visual XSD editor)

http://platform.netbeans.org/
http://graph.netbeans.org/


Thomas

sturlamolden

unread,
Aug 19, 2007, 9:29:22 AM8/19/07
to
On Aug 17, 3:27 pm, chewie54 <dfabrizi...@gmail.com> wrote:

> What would be the best cross-platform GUI library to use for a vector
> based CAD program

I suggest you use different toolkits for windowing (GUI widgets) and
drawing the vector graphics.

It does not really matter which toolkit you use for windowing.
wxPython looks good on many platforms and are free. So it PyGTK.

For vector graphics part I suggest PyCairo, AggDraw or OpenGL,
depending on your need.

PIL and NumPy are also essential if you will be working with images

vijay.ku...@gmail.com

unread,
Aug 20, 2007, 2:41:46 AM8/20/07
to
Hi All,

Today I have downloaded a SWT Software which is great to its features.
You can learn
many GUI details out of it. The basic functionality is it lists IP
Addresses of the
remote PC's your system is accessing.

You may find the project under sourceforge.net

http://sourceforge.net/projects/nettymaster

You can customize this software, please let me know your views

vijay.ku...@gmail.com

unread,
Aug 20, 2007, 2:41:54 AM8/20/07
to

Mats

unread,
Aug 20, 2007, 3:04:45 AM8/20/07
to

pachi...@gmail.com

unread,
Aug 20, 2007, 6:40:30 AM8/20/07
to
On Aug 17, 3:27 pm, chewie54 <dfabrizi...@gmail.com> wrote:

You could use pythoncad (www.pythoncad.org) as a base and develop it
further, or even contract its main developer to expand its features to
fulfill your needs and improve it. It's based on the GTK+ toolkit,
written in python and has scripting capabilities. IMHO, it's the most
promising free CAD effort around though even if it's not as mature as
QCad.
You could use it in commercial applications as long as you comply with
the GPL, or the author agrees to dual license it for you, but it would
be very welcome if the improvements are avaliable for all users.

Regards,

Rafael

Roedy Green

unread,
Aug 20, 2007, 7:13:46 AM8/20/07
to
>What would be the best cross-platform GUI library to use for a vector
>based CAD program ( something like Visio on Windows )
I don't know about he best, but I have collected a list of them at
http://mindprod.com/jgloss/graph.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Thomas Kellerer

unread,
Aug 20, 2007, 7:37:02 AM8/20/07
to
Roedy Green wrote:
>> What would be the best cross-platform GUI library to use for a vector
>> based CAD program ( something like Visio on Windows )
> I don't know about he best, but I have collected a list of them at
> http://mindprod.com/jgloss/graph.html

Roedy,

you might want to add NetBeans' Graph library to the list. It is very
similar to Eclipse's GEF

http://graph.netbeans.org/

Thomas

chewie54

unread,
Aug 20, 2007, 4:37:26 PM8/20/07
to

Very nice. Are all the features functional? I was reading that Cairo
is cross-platform so can I use your tkpath package with Cairo for all
the platforms?

Have you implemented the save as pdf, ps, and svg vector file
formats?

Thanks for your feedback.
Dan

0 new messages