[IronPython] AttributeError : System.Drawing.Graphics is "read-only"

Markus Schaber m.schaber at 3s-software.com
Mon Apr 18 15:46:38 CEST 2011


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-bounces at lists.ironpython.com [mailto:users-
> bounces at lists.ironpython.com] Im Auftrag von NikoVFR
> Gesendet: Montag, 18. April 2011 15:31
> An: users at 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 at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list