[pygtk] AttributeError: 'module' object has no attribute 'DrawingArea'

Rob Brown-Bayliss r.brown.bayliss at gmail.com
Mon Oct 11 14:42:47 WST 2010


Hi

Does any one know why am I getting this error in the attached file?
Why can't I use DrawingArea in gtk?

File "/home/rob/cairo.py", line 9, in <module>
  import gtk
File "/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py", line 40,
in <module>
  from gtk import _gtk
File "/home/rob/cairo.py", line 12, in <module>
  class EggClockFace(gtk.DrawingArea):



-- 
--

Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo.py
Type: text/x-python
Size: 1687 bytes
Desc: not available
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20101011/49cdabcc/attachment.py>


More information about the pygtk mailing list