This has the desired effect: import clr clr.AddReference("System.Xml") clr.AddReference("PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35") clr.AddReference("PresentationCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35") from System.IO import StringReader from System.Xml import XmlReader from System.Windows.Markup import XamlReader, XamlWriter from System.Windows import Window, Application
xaml = """ <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Title="Test" Width="600" Height="400"> <DockPanel> </DockPanelTest> </Window> """ xr = XmlReader.Create(StringReader(xaml)) win = XamlReader.Load(xr) Application().Run(win) On Sat, Mar 29, 2008 at 8:34 PM, Curt Hagenlocher <[EMAIL PROTECTED]> wrote: > The "snippets" represent executable code that's generated dynamically by the > DLR from your Python source. Do you have a small piece of sample code that > reproduces the failure? > > > > On Sat, Mar 29, 2008 at 1:28 PM, Davy Mitchell <[EMAIL PROTECTED]> > wrote: > > > > > > > > > Hi All, > > > > IPY2.0 B1 Vista SP1 > > > > I keep seeing reference to 'Snippets' in IP Tracebacks on different > > bits of code. Can't find anything on codeplex so assume it *probably* > > something wrong this end. > > I don't have a 'Snippets' module AFAIK. > > > > Typical example > > C:\Code\OSProjects>ipy wpf5.py > > Traceback (most recent call last): > > File Snippets, line unknown, in Initialize > > File PresentationFramework, line unknown, in Load > > > > Is it just me or.... :-) > > > > -- > > > > > > > > Davy Mitchell > > Blog - http://www.latedecember.co.uk/sites/personal/davy/ > > Twitter - http://twitter.com/daftspaniel > > Skype - daftspaniel needgod.com > > _______________________________________________ > > Users mailing list > > Users@lists.ironpython.com > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > > _______________________________________________ > Users mailing list > Users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -- Davy Mitchell Blog - http://www.latedecember.co.uk/sites/personal/davy/ Twitter - http://twitter.com/daftspaniel Skype - daftspaniel needgod.com _______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com