[IronPython] Deprecation warning on Windows Form Double Buffered

Davy Mitchell daftspaniel at gmail.com
Thu Aug 7 22:22:45 CEST 2008


Thanks Dino - that's good to know!

On Thu, Aug 7, 2008 at 9:09 PM, Dino Viehland
<dinov at exchange.microsoft.com>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:* users-bounces at lists.ironpython.com [mailto:
> users-bounces at lists.ironpython.com] *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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080807/1e4be67e/attachment.html>


More information about the Ironpython-users mailing list