[IronPython] Deprecation warning on Windows Form Double Buffered
Davy Mitchell
daftspaniel at gmail.com
Thu Aug 7 21:53:55 CEST 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080807/a62b3b54/attachment.html>
More information about the Ironpython-users
mailing list