[IronPython] Silverlight 4 and RichTextBox
Michael Foord
fuzzyman at voidspace.org.uk
Mon Apr 12 13:33:55 CEST 2010
Hello all,
I'm trying to use the new RichTextBox from Silverlight 4 with
IronPython. I have IronPython 2.6.1 RC and Silverlight 4 RC installed
(Windows). It fails with a "SystemError: Specified method is not
supported" when instantiating the RichTextBox.
The code is:
from System.Windows import Application
from System.Windows.Controls import Canvas, RichTextBox
canvas = Canvas()
text = RichTextBox()
text.Text = 'Hello World from IronPython'
canvas.Children.Add(text)
Application.Current.RootVisual = canvas
Any ideas?
All the best,
Michael Foord
--
http://www.ironpythoninaction.com/
More information about the Ironpython-users
mailing list