Hi, Niko, A small self-contained running example would be nice.
I tried to guess some of the missing context, and now get the exception that MainForm has no _paint member. Regards, Markus > -----Ursprüngliche Nachricht----- > Von: users-boun...@lists.ironpython.com [mailto:users- > boun...@lists.ironpython.com] Im Auftrag von NikoVFR > Gesendet: Montag, 18. April 2011 15:31 > An: users@lists.ironpython.com > Betreff: Re: [IronPython] AttributeError : System.Drawing.Graphics is > "read-only" > > > class MainForm(Form): > def MainFormPaint(self, sender, e): > print "MainFormPaint %i"%self._paint > gr = e.Graphics > self.MainPanel.Draw(gr,0) > > class MainPanel: > def Draw(self,gr,starty): > y = starty > for c in self.Children: > y = c.Draw(gr,y) > > Tell me if you need more code.... > -- > View this message in context: http://old.nabble.com/AttributeError-%3A- > System.Drawing.Graphics-is-%22read-only%22-tp31419737p31423875.html > Sent from the IronPython mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com