Python Forum
Planning High Level Drawing Library
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Planning High Level Drawing Library
#1
I am planning to start a project to develop a high level drawing python library.
I want to target both Gtk and tkinter, but also I want the library to be designed for (relatively) easily add more backends.
So the arquitecture of the library should separate the backend related stuff from the rest.

I want something which works similarly to matplotlib but more focused on drawing.

The main concern of the library would be to manage nested "graphic objects" (matplotlib artists) in a "graphic scene" which can be rendered to a canvas, saved to a SVG file etc... The "graphic objects" should be able to move around, resize, change its properties, style etc...


I know this is done in qt but not in Gtk which only has drawing primitives through cairo. (Let alone tkinter)

The goal is to get a pure python library, which works in any python installation without extra dependencies (or maybe with only pure python dependencies). As pygobject is installed in most Linux by default an tkinter in windows python, both backends would suffice.
The targeted clients would be designers apps, simple games, diagramming, timelines etc...

I was studying matplotlib design and I found a lot of ideas but still it is a bit dirty.

I wonder if I am trying to reinvent the wheel. So I would like to know if there is any similar existing project. Or to know about any project form which I can borrow some ideas.

I know the gaphas library but it is only Gtk, not muti bakcned, and is targeted to diagrams drawing only. I didn-t study this library yet.
I don't have any code to show yet but when I have I will share it in the corresponding section.

Now I am trying to make up my mind about the overall design and how the public api should look like.

Any ideas, thoughts, advices are welcome!!
Big Grin Big Grin

[For reference this is a long article on matplotlib internal design]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  High level direction for my next project henricartierbresson 2 1,939 Jun-01-2020, 03:49 AM
Last Post: ndc85430
  High level Python program architectural design question - decoration for multiple ent yahbai 0 1,746 Jan-16-2020, 08:30 PM
Last Post: yahbai

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020