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=self.width
        self.yv=self.height
        self.yh=self.width/2
        self.xv=self.height/2
        self.xc=self.xh/2
        self.yc=self.yv/2


         self.style = self.area.get_style()
         self.gc = 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.
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to