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. Advertisements

  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. Advertisements

  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. Advertisements

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:
    877
    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:
    760
    Vyacheslav Levitsky
    Oct 2, 2006
  3. Mardagg
    Replies:
    0
    Views:
    1,009
    Mardagg
    May 12, 2006
  4. odwrotnie

    Box drawing library

    odwrotnie, Jul 18, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    508
    odwrotnie
    Jul 18, 2006
  5. J Allen Horner

    C drawing library

    J Allen Horner, May 23, 2004, in forum: C Programming
    Replies:
    1
    Views:
    859
    Malcolm
    May 23, 2004
  6. Harry George

    Chart drawing library for Python

    Harry George, Jan 28, 2004, in forum: Python
    Replies:
    7
    Views:
    21,172
    tomasz.worona
    Mar 8, 2010
  7. chewie54
    Replies:
    16
    Views:
    823
    chewie54
    Aug 20, 2007
  8. defn noob
    Replies:
    1
    Views:
    615
    Mark Space
    Jun 28, 2008
Loading...