[Ironpython-users] (no subject)

曾东 zdong.xysoft at gmail.com
Thu Jul 28 10:35:51 CEST 2011



I use this code in silverlight to run a script define outer


             var setup = new ScriptRuntimeSetup();

             setup.HostType = typeof(BrowserScriptHost);


             setup.Options["SearchPaths"] = new string[] { string.Empty };

             Runtime = new ScriptRuntime(setup);



             engine = Runtime.GetEngine("Python");




The python script has some code to import windows.controls but it failed
with “Could not add reference to assembly System.Windows.Controls”


import clr


from  System.Windows.Controls import *


Could you kindly give me some suggestion ,thanks



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20110728/1e58af51/attachment.html>

More information about the Ironpython-users mailing list