[IronPython] Deprecation warning on Windows Form Double Buffered
Dino Viehland
dinov at exchange.microsoft.com
Thu Aug 7 22:09:16 CEST 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080807/d7d7271c/attachment.html>
More information about the Ironpython-users
mailing list