Re: [IronPython] Python in the Browser updates

2008-07-21 Thread Michael Foord
ything was blocking you from hooking HTML events with Python. ~js -Original Message- From: [EMAIL PROTECTED] [mailto:users- [EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Tuesday, June 17, 2008 2:52 PM To: Discussion of IronPython Subject: Re: [IronP

Re: [IronPython] Python in the Browser updates

2008-07-21 Thread Jimmy Schementi
o >>> swap the examples around. >>> >> >> Basically, if there is something pretty basic you can't do in >> Python that you can do from browser Javascript, it's a bug! =) >> >> >>> Michael Foord >>> >>> >>>>

Re: [IronPython] Python in the Browser updates

2008-07-20 Thread Michael Foord
andler[HtmlEventArgs](onkeypress)) Anyway, just wondering if anything was blocking you from hooking HTML events with Python. ~js -Original Message- From: [EMAIL PROTECTED] [mailto:users- [EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Tuesday, June 17, 2008 2:52 PM T

Re: [IronPython] Python in the Browser updates

2008-07-14 Thread Jimmy Schementi
ss(s, e): > > document.result.innerHTML += "KeyPress" > > document.code.AttachEvent("onkeypress", > EventHandler[HtmlEventArgs](onkeypress)) > > > > Anyway, just wondering if anything was blocking you from hooking HTML > events with Python. > > > > ~js

Re: [IronPython] Python in the Browser updates

2008-06-19 Thread Michael Foord
Sent: Thursday, June 19, 2008 2:05 AM To: Discussion of IronPython Subject: Re: [IronPython] Python in the Browser updates Hello all, Thanks Jonathan. The approach you suggest has several great advantages. The disadvantages are that you lose the ability to copy and paste (I think most browse

Re: [IronPython] Python in the Browser updates

2008-06-19 Thread Jimmy Schementi
> [EMAIL PROTECTED] On Behalf Of Michael Foord > > Sent: Thursday, June 19, 2008 2:05 AM > > To: Discussion of IronPython > > Subject: Re: [IronPython] Python in the Browser updates > > > > Hello all, > > > > Thanks Jonathan. The approach you suggest has s

Re: [IronPython] Python in the Browser updates

2008-06-19 Thread Michael Foord
Jonathan Slenders wrote: You're right there. Copying is no problem, but pasting is. I don't know how often you paste Python code in an interactive terminal, but you should do it literally line by line because of the extra empty line required in the console to close a definition. So, I don't thi

Re: [IronPython] Python in the Browser updates

2008-06-19 Thread Jimmy Schementi
AM > To: Discussion of IronPython > Subject: Re: [IronPython] Python in the Browser updates > > Hello all, > > Thanks Jonathan. The approach you suggest has several great advantages. > The disadvantages are that you lose the ability to copy and paste (I > think most browsers forbid yo

Re: [IronPython] Python in the Browser updates

2008-06-19 Thread Jonathan Slenders
You're right there. Copying is no problem, but pasting is. I don't know how often you paste Python code in an interactive terminal, but you should do it literally line by line because of the extra empty line required in the console to close a definition. So, I don't think it's really that important

Re: [IronPython] Python in the Browser updates

2008-06-19 Thread Michael Foord
Hello all, Thanks Jonathan. The approach you suggest has several great advantages. The disadvantages are that you lose the ability to copy and paste (I think most browsers forbid you from manipulating the clipboard from Javascript unless the user has fiddled with some obscure settings). For

Re: [IronPython] Python in the Browser updates

2008-06-18 Thread Jonathan Slenders
2008/6/18 Michael Foord <[EMAIL PROTECTED]>: > Jimmy Schementi wrote: > >> 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: >> >> >> > > Did y

Re: [IronPython] Python in the Browser updates

2008-06-18 Thread Michael Foord
s](onkeypress)) Anyway, just wondering if anything was blocking you from hooking HTML events with Python. ~js -Original Message- From: [EMAIL PROTECTED] [mailto:users- [EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Tuesday, June 17, 2008 2:52 PM To: Discussion of IronPython Subject: Re

Re: [IronPython] Python in the Browser updates

2008-06-18 Thread Miha Valencic
A couple of observations: the "get sliverlight" on your page links to Windows binaries. I guess msft could detect OS and server appropriate binary for download. I installed the 2.0b2 on Mac -- it's 6.7 MB and not 4MB, as it says. :) And it does take more than 10s to install, but all went fine. Wor

Re: [IronPython] Python in the Browser updates

2008-06-17 Thread Jimmy Schementi
> -Original Message- > From: [EMAIL PROTECTED] [mailto:users- > [EMAIL PROTECTED] On Behalf Of Michael Foord > Sent: Tuesday, June 17, 2008 2:52 PM > To: Discussion of IronPython > Subject: Re: [IronPython] Python in the Browser updates > > Hello all, > > Sorry 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] 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] Python in the Browser updates

2008-06-16 Thread Miha Valencic
Any ideas how to get it working on Mac? Thanks, Miha. On Tue, Jun 17, 2008 at 1:04 AM, Michael Foord <[EMAIL PROTECTED]> wrote: > For those who are interested, I've updated "Python in the Browser". > > And the online demo: > > http://www.voidspace.org.uk/ironpython/silverlight-console/console.ht