Alex
Alex

Reputation: 3267

I need python library which support graphic objects manipulation

Does exists library for Python which gives me advantages for 2D graphic objects manipulation with mouse events. SVG + Javascript works beautiful for web app, but I need to build desktop application which allows user to drag vector objects and to have events like "onmouseover", "onmousedown"...

It doesn't have to be based on SVG, but to allow similar kind of manipulation as SVG+Javascript.

Upvotes: 0

Views: 336

Answers (2)

Tim Hoffman
Tim Hoffman

Reputation: 12986

Pycairo bindings for Cairo is another alternative http://cairographics.org/pycairo/

Upvotes: 1

Alex Wilson
Alex Wilson

Reputation: 6740

You could use PyQT (Python wrappers for Qt). The QGraphicsScene and QGraphicsView classes do just this.

An example here: http://lateral.netmanagers.com.ar/stories/BBS53.html.

I've used them on several occasions, and they have good performance, are very flexible and are easy to use.

Upvotes: 1

Related Questions