Re: [IronPython] Python in the Browser updates

2008-06-17 Thread Jimmy Schementi
Michael, question for you: > On every keypress Javascript calls into IronPython (via the C#!). How come you used C# to handle the onkeypress event? This should do it in Python: from System import EventHandler from System.Windows.Browser import Htmlpage, HtmlEventArgs document = System.Windo

Re: [IronPython] XmlDocument or XDocument in Python/Silverlight

2008-06-17 Thread Jonathan Slenders
Thank you, Michael I had to: import clr clr.AddReference('System.Xml.Linq') 2008/6/17 Michael Foord <[EMAIL PROTECTED]>: > Hello Jonathan, > > Do you need to add a reference to the assembly before importing from it? > > In the Silverlight chapter of IronPython in Action I use 'XmlReader' for

Re: [IronPython] Python in the Browser updates

2008-06-17 Thread Michael Foord
Hello all, Sorry for the noise - but tomorrow I hope to package this for a release and if any of you get the chance to give me any feedback before then. http://www.voidspace.org.uk/ironpython/silverlight-console/console.html I think I have fixed all the basic usability issues (it is no longer

Re: [IronPython] XmlDocument or XDocument in Python/Silverlight

2008-06-17 Thread Michael Foord
Hello Jonathan, Do you need to add a reference to the assembly before importing from it? In the Silverlight chapter of IronPython in Action I use 'XmlReader' for parsing XML. I have already (in an earlier chapter) provided a wrapper over this that gives it a SAX like interface. The code worked

[IronPython] XmlDocument or XDocument in Python/Silverlight

2008-06-17 Thread Jonathan Slenders
Hello, It seems that XmlDocument isn't available in Silverlight. The Linq dll ("System.Xml.Linq.dll") is listed between the client libraries, but when I add them to my Silverlight manifest file and try: from System.Xml.Linq import XDocument The following error occurs: "ManagedRuntimeError, SetPr

Re: [IronPython] Operator overloading, and implicit conversion from Double to Single in operators

2008-06-17 Thread Dino Viehland
Great question. The reason why operators get treated differently due to things like: [2, 3] * 2.0 For this call we cannot coerce the float into an int by Python semantics. Compare this to: xrange(2.0) which is allowed (but in CPython issues a warning). So in general Python seems to be more

Re: [IronPython] ironpython xna problem

2008-06-17 Thread Gigs_
sers@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 __ Information from ESET NOD32 Antivirus, ver

Re: [IronPython] ironpython xna problem

2008-06-17 Thread Dino Viehland
eon help me with this_ thanks! >>> ___ >>> Users mailing list >>> Users@lists.ironpython.com >>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >>> >> ___

Re: [IronPython] APAX?

2008-06-17 Thread Jimmy Schementi
Definitely, there's nothing *special* about ARAX, other than that it's Ruby; It could be APAX too, given that someone writes the library. I'm building up a nice library for Ruby, and that can definitely be ported to Python (Michael? =P). All this is enabled by Silverlight and the DLR, so any lan

Re: [IronPython] ironpython xna problem

2008-06-17 Thread Michael Foord
sts.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com __ Information from ESET NOD32 Antivirus, version of virus signature database 3194 (20080617) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com thez are in the gac, and when i cop

Re: [IronPython] APAX?

2008-06-17 Thread Michael Foord
Trent Nelson wrote: Any likelihood of IronPython competing with the likes of 'ARAX'? http://www.eweek.com/c/a/Application-Development/Move-Over-AJAX-ARAX-is-Here/ It would be easy enough to write a library supporting 'AJAX-like' operations from IronPython in Silverlight. Michael Foor

Re: [IronPython] ironpython xna problem

2008-06-17 Thread Gigs_
on.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com __ Information from ESET NOD32 Antivirus, version of virus signature database 3194 (20080617) __ The message was checked by ESET NOD32

[IronPython] APAX?

2008-06-17 Thread Trent Nelson
Any likelihood of IronPython competing with the likes of 'ARAX'? http://www.eweek.com/c/a/Application-Development/Move-Over-AJAX-ARAX-is-Here/ Trent. ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ir

[IronPython] Operator overloading, and implicit conversion from Double to Single in operators

2008-06-17 Thread Korbinian Abenthum
Hi I basically have the same problem as in http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=939 A struct like: public struct Test { public float a; public Test(float a) { this.a = a; } public static Test operator *(float lscalar, Test test) { return

Re: [IronPython] ironpython xna problem

2008-06-17 Thread Paul Turbett
Are the XNA assemblies in the same directory as your script? I don't think they are in the GAC, so unless they in the same place as the ipy script, or a directory in your path, they won't be loaded. L8r, Paul Gigs_ wrote: Hi all! i want to run some ironpython xna script, but all the tim im

Re: [IronPython] Python in the Browser updates

2008-06-17 Thread Michael Foord
Michael Foord wrote: Miha Valencic wrote: Any ideas how to get it working on Mac? I've been developing it on the Mac - so it definitely works. You need Silverlight 2 Beta 2 installed. You can get this from: http://silverlight.net/GetStarted/ To run "Python in the Browser" locally you'll n

Re: [IronPython] Python in the Browser updates

2008-06-17 Thread Michael Foord
Miha Valencic wrote: Any ideas how to get it working on Mac? I've been developing it on the Mac - so it definitely works. You need Silverlight 2 Beta 2 installed. You can get this from: http://silverlight.net/GetStarted/ To run "Python in the Browser" locally you'll need a recent version o

Re: [IronPython] Silverlight+IronPython: external DLLs

2008-06-17 Thread Jonathan Slenders
2008/6/17 Jimmy Schementi <[EMAIL PROTECTED]>: > Jonathan, > > > Make your AppManifest.xaml file look like this, this will let you download > DLLs from the root of the current domain. You can also add http://foo.comto > the beginning of the path and have it download from a different server > (wh