[pygtk] Notebook don't allow style attribute of drawing area when page is loaded

ganesh gajre ganeshgajre at gmail.com
Fri Mar 7 22:53:00 WST 2008


Hello,
 I have to load a page which contain graphics i.e drawing area.
 when i m append that page in notebokk it gives me error: attribute  'style'
of  "gtk.Widget" object is not writable.
e.g:


    def area_expose_cb(self, area, event):
        self.xh=3Dself.width
        self.yv=3Dself.height
        self.yh=3Dself.width/2
        self.xv=3Dself.height/2
        self.xc=3Dself.xh/2
        self.yc=3Dself.yv/2


         self.style =3D self.area.get_style()
         self.gc =3D self.style.fg_gc[gtk.STATE_NORMAL]

          self.draw_line(self.xh, self.yh,self.xv,self.yv)

          self.drawgrid(self.xc,self.yc)
          self.drawobj(self.xc,self.yc,self.yh)

        sef.FixLens(self.xc,self.yc)

                  return False

please check and reply  it is Urgent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20080307/38890106/at=
tachment.htm


More information about the pygtk mailing list