Markus Schaber-6 wrote:
> 
> 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
> 
> 

Ok, problem solved, sorry you wasted your time for me....

I was just trying to create a System.Graphics.Font..... 

Re-read it again and found... 
Thanks whatever....


-- 
View this message in context: 
http://old.nabble.com/AttributeError-%3A-System.Drawing.Graphics-is-%22read-only%22-tp31419737p31425014.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

Reply via email to