Thanks Dino - that's good to know! On Thu, Aug 7, 2008 at 9:09 PM, Dino Viehland <[EMAIL PROTECTED]>wrote:
> The warning is overly aggressive in this case – the warning is removed > for the next release and your code will still work so you can ignore it. > > > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Davy Mitchell > *Sent:* Thursday, August 07, 2008 12:54 PM > *To:* Discussion of IronPython > *Subject:* [IronPython] Deprecation warning on Windows Form Double > Buffered > > > > Hi All, > > With the following code I am getting a warning: > > DeprecationWarning: Accessing protected method DoubleBuffered from > non-derived type Form > > *import clr > clr.AddReference('System.Windows.Forms') > from System import * > from System.Windows.Forms import * > class LDForm(Form): > > def __init__(self): > self.DoubleBuffered = True > def __call__(self): > Application.EnableVisualStyles() > Application.Run(self) > > LDForm()()* > > Is this related to the import changes? I've not been doing much Pythoning > lately so sorry if I have missed something... > > Thanks, > Davy > > -- > Davy Mitchell > Blog - http://daftspaniel.blogspot.com > Twitter - http://twitter.com/daftspaniel > Skype - daftspaniel http://needgod.com > > ------------------------------ > Sample disclaimer text > > _______________________________________________ > Users mailing list > Users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -- Davy Mitchell Blog - http://daftspaniel.blogspot.com Twitter - http://twitter.com/daftspaniel Skype - daftspaniel http://needgod.com
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com