Re: [IronPython] Silverlight IronPy Video Player

2010-01-05 Thread Jimmy Schementi
There's plenty of samples out there about playing video in Silverlight (with C# or VB), and any of those should be easily translated to Python as well. I'm assuming you're not having trouble with actual Python code, but you don't know where to start with video in Silverlight: the Silverlight 3 V

[IronPython] IronPython 2.6 CodePlex Source Update

2010-01-05 Thread merllab
This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/62925. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations

Re: [IronPython] Silverlight IronPy Video Player

2010-01-05 Thread Andrew Evans
Hi Thank you for the reply I was able to get a simple video player working. The only IronPython code I seem to be having problems with now is using a Image as a Button I can't seem to figure out the syntax of that any suggestions are welcome button1 = Button() Image() etc just not sure I would

[IronPython] can't execute method in globals

2010-01-05 Thread Ernesto Cullen
hi all I have problems trying to update (from Ipy 1.1) code which uses IronPython scripts from an app in C#. If someone can shed a light on why this does not work, please... Ernesto Cullen I have this code in Ipy 1.1: EngineOptions engineOptions = new EngineOptions(); engineOptions.Exce

Re: [IronPython] can't execute method in globals

2010-01-05 Thread Dino Viehland
What is "gs" in InitDbUtils, should that be gl? Also can you include the line of code where you're actually executing the code from your host? Are you setting ScriptRuntime.Globals to _scriptScope? Because I think Globals may have changed meaning between 1.1 and 2.0/2.6. In 2.x Globals is ma

Re: [IronPython] can't execute method in globals

2010-01-05 Thread Ernesto Cullen
> What is "gs" in InitDbUtils, should that be gl? yes, sorry Also can you include the line of code where you're actually executing the code from your host? The main code (the lambda definitions etc) is executed like this: ScriptSource source = _scriptEngine.CreateScriptSourceFromString(scrip

Re: [IronPython] can't execute method in globals

2010-01-05 Thread Dino Viehland
Is there anything different from the code below vs. what you're trying to do? Because this works for me in 2.6. It would seem like the only possible difference (based upon the error) is that there's some access ExecuteQuery on an MSSqlServerUtils object which I'm not seeing. If that's the ca

[IronPython] Can't Get an Image on a Button Ipy Silverlight

2010-01-05 Thread Andrew Evans
I have been trying for two days now and can't seem to get it right. It doesn't help that Silverlight returns no errors Can any one help me figure out how to use an image as a Button in Silverlight some code I have tried self.stopB = Button() # stop button imageSource = Uri("image

Re: [IronPython] Can't Get an Image on a Button Ipy Silverlight

2010-01-05 Thread Andrew Evans
I am still having problems. I don't think its a pathing issue but the Images don't display because I tried: "/images/stop.jpg" "images/stop.jpg" and placing the images in the same folder "stop.jpg" here is a chunk of my code from System.Windows.Controls import Button, Orientation, StackPanel

Re: [IronPython] Can't Get an Image on a Button Ipy Silverlight

2010-01-05 Thread Jimmy Schementi
Can you possibly send me your project zipped up? jimmysch*(at)*microsoft.com. "images/stop.jpg" I believe will first look into images/stop.jpg inside the XAP file, and the look at http://yourserver.com/path/to/xap/images/stop.jpg, but I can get it working for you. ___