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

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


Hi, Doug,

We get the same misleading error message with IPy 2.6 on microsoft .NET 2.0.

Grüße,
Markus


> -----Ursprüngliche Nachricht-----
> Von: users-bounces at lists.ironpython.com [mailto:users-
> bounces at lists.ironpython.com] Im Auftrag von Doug Blank
> Gesendet: Montag, 18. April 2011 14:17
> An: Discussion of IronPython
> Cc: NikoVFR
> Betreff: Re: [IronPython] AttributeError : System.Drawing.Graphics
> is"read-only"
> 
> On Mon, Apr 18, 2011 at 7:56 AM, NikoVFR <vfr.niko at 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-%2
> > 2read-only%22-tp31419737p31419737.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
> >
> _______________________________________________
> 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