Python drawing library?

Discussion in 'Python' started by OKB (not okblacke), May 15, 2011.

  1. Is there any Python library for interactive drawing? I've done
    some googling but most searches for "drawing" lead me to libraries for
    programmatic creation of shapes on some GUI canvas. I'm looking for GUI
    widgets that allow the user to draw with the mouse, like a paint
    program, and let me get info about the drawing as its made (get color at
    mouse location, etc.). I'd prefer a wxPython solution, although any
    Python solution would be better than none.

    Thanks,
    --
    --OKB (not okblacke)
    Brendan Barnwell
    "Do not follow where the path may lead. Go, instead, where there is
    no path, and leave a trail."
    --author unknown
     
    OKB (not okblacke), May 15, 2011
    #1
    1. Advertising

  2. On 15/05/11 01:01, OKB (not okblacke) wrote:
    > Is there any Python library for interactive drawing? I've done
    > some googling but most searches for "drawing" lead me to libraries for
    > programmatic creation of shapes on some GUI canvas. I'm looking for GUI
    > widgets that allow the user to draw with the mouse, like a paint
    > program, and let me get info about the drawing as its made (get color at
    > mouse location, etc.). I'd prefer a wxPython solution, although any
    > Python solution would be better than none.
    >
    > Thanks,

    I'm not suere, but I think you should be able to do that using PyQt
    QPaintDevice.
     
    Rafael Durán Castañeda, May 15, 2011
    #2
    1. Advertising

  3. Yes, it is possible with use of PyQt.

    2011/5/15 Rafael Durán Castañeda <>:
    > On 15/05/11 01:01, OKB (not okblacke) wrote:
    >>
    >>        Is there any Python library for interactive drawing?  I've done
    >> some googling but most searches for "drawing" lead me to libraries for
    >> programmatic creation of shapes on some GUI canvas.  I'm looking for GUI
    >> widgets that allow the user to draw with the mouse, like a paint
    >> program, and let me get info about the drawing as its made (get color at
    >> mouse location, etc.).  I'd prefer a wxPython solution, although any
    >> Python solution would be better than none.
    >>
    >> Thanks,

    >
    > I'm not suere, but I think you should be able to do that using PyQt
    > QPaintDevice.
    > --
    > http://mail.python.org/mailman/listinfo/python-list
    >
     
    Wojtek Mamrak, May 15, 2011
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    661
    Kevin Spencer
    Jan 9, 2006
  2. Ross Clement (Email address invalid - do not use)

    Maths expression drawing library

    Ross Clement (Email address invalid - do not use), Jan 11, 2006, in forum: Java
    Replies:
    4
    Views:
    612
    Vyacheslav Levitsky
    Oct 2, 2006
  3. Mardagg
    Replies:
    0
    Views:
    818
    Mardagg
    May 12, 2006
  4. Harry George

    Chart drawing library for Python

    Harry George, Jan 28, 2004, in forum: Python
    Replies:
    7
    Views:
    20,820
    tomasz.worona
    Mar 8, 2010
  5. defn noob
    Replies:
    1
    Views:
    415
    Mark Space
    Jun 28, 2008
Loading...

Share This Page