On Mon, Apr 18, 2011 at 7:56 AM, NikoVFR <vfr.n...@hotmail.fr> wrote:
>
> Hello everybody...
>
> first i apologize for my bad english... i did not practice for a very long
> time...
>
> A strange problem in a ironpython app, done with Sharpdevelop...
>
> I created a form, without borders, captions, icon...., just a simple square
> to draw...
>
> When I try to draw from my OnPaint Function, IronPy answers me :
> Exception.AttributeError :
> attribute 'Graphics' of 'namespace#' object is read-only

That usually means that you have misspelled an attribute. For example,
if you say Gtk.Wibbow instead of Gtk.Window, you'll get that error.
(It is actually a bad error message in that you are only looking up a
value, not creating one; is that only a Mono-only issue I wonder?)

As Jimmy says, we'd need to see the code to say more.

-Doug

> Thanks for helping me, i really can't find any solution here...
> --
> View this message in context: 
> http://old.nabble.com/AttributeError-%3A-System.Drawing.Graphics-is-%22read-only%22-tp31419737p31419737.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

Reply via email to