473,386 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Rich Graphics?

I'm trying to write a Gui in Python for manipulating rich graphical
representations, similar to something like Inkscape. I've tried tkinter,
wxPython, pyGtk, and while they all do traditional widgets well enough,
none of them really handle anti-aliased, transparent, transformed shapes
typical of vector based displays. I've noticed tkZinc, which seems to
better handle vector graphics through the use of openGL, but it's
traditional widget set is still limited and based on tkinter. Ideally,
what I'm looking for is something like wxWidgets which can display SVG
along side standard widgets and allow there manipulation through Python.
I was thinking of a web-based route, by accessing the SVG capabilities
in Mozilla's Deer Park browser through Twisted+Livepage, but this has
been extremely complicated and limiting. Are there any other options I
haven't considered?

Sincerely,
Chris
Jul 27 '05 #1
4 1594
D H
Cairo is an option, for Linux only though at the moment. There is a
python binding: http://cairographics.org/bindings
You can use it in combination with pygtk:
http://cvs.cairographics.org/pycairo/examples/svg/
See also the backends used by matplotlib, a python plotting module.
Jul 28 '05 #2
Chris Spencer wrote:
I'm trying to write a Gui in Python for manipulating rich graphical
representations, similar to something like Inkscape. I've tried tkinter,
wxPython, pyGtk, and while they all do traditional widgets well enough,
none of them really handle anti-aliased, transparent, transformed shapes
typical of vector based displays. I've noticed tkZinc, which seems to
better handle vector graphics through the use of openGL, but it's
traditional widget set is still limited and based on tkinter. Ideally,
what I'm looking for is something like wxWidgets which can display SVG
along side standard widgets and allow there manipulation through Python.
I was thinking of a web-based route, by accessing the SVG capabilities
in Mozilla's Deer Park browser through Twisted+Livepage, but this has
been extremely complicated and limiting. Are there any other options I
haven't considered?

Sincerely,
Chris


maybe PyGame: http://www.pygame.org/, although it might be lacking in
the standard widget department.

Daniel
Jul 28 '05 #3
Chris Spencer <us****************@spamgourmet.com> writes:
I'm trying to write a Gui in Python for manipulating rich graphical
representations, similar to something like Inkscape. I've tried tkinter,
wxPython, pyGtk, and while they all do traditional widgets well enough,
none of them really handle anti-aliased, transparent, transformed shapes
typical of vector based displays.


You may want to have a look at Skencil (see my .sig for a URL). The CVS
version does have anti-aliasing and some simple translucency. It
doesn't support all of SVG yet, though.

Bernhard

--
Intevation GmbH http://intevation.de/
Skencil http://skencil.org/
Thuban http://thuban.intevation.org/
Jul 28 '05 #4
for widgets, try pyUI

http://pyui.sourceforge.net/

hope that helps, looks cool and all..

Jul 29 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Sinisa | last post by:
I am trying to create a "thick" application that will run through a web browser. Something similar to the behaviour of Adobe or Word when a PDF or DOC file is posted, the action opens the file in...
7
by: TomHL | last post by:
hi, how can I create a very rich gui like: "Windows XP Media Center Edition" for my application? what is the technology/ies that I need to learn (GDI+ Or DirectX Or..)? Where do I start? How...
11
by: Webster | last post by:
Hello, I was wondering if there's a way to create a tooltip but add graphics to it. Currently I have a picturebox that I dynamically add graphics/labels/etc to, but when this "tooltip" is on the...
3
by: VJ | last post by:
Is there a way to paint,.. assign.. or any way to put Rich Text in a label. VJ
4
by: iwdu15 | last post by:
can anybody help me print from a rich text box? i tried the way they showed on the MSDN web page, but it did not work. I am using VB.net 2003...any help would be appreciated
2
by: penguin732901 | last post by:
Hi Steve, I hope you can help me with this. In Access 97, I'm getting the following error. "The formats that enable you to output data as a Microsoft Excel, rich-text format, MS-DOS text, or...
0
by: Shane | last post by:
We use non-standard buttons in our app (Ok, Cancel, ...) The MsgBox uses the standard buttons, which looks inconsistent. I need to make a MsgBox replacement. I could use a text box for the...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
11
by: ARC | last post by:
Hello all, My app has an e-mailing feature where you can e-mail reports, as well as a bulk e-mail feature for e-mailing all customers (as separate e-mails). I allow the user to set the subject...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.