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