From: Neil H. <ne...@sc...> - 2001-09-04 22:06:30
|
Kevin Altis: > Neil actually did a demo that uses the .rsrc.py files to make a web page > suitable for use in a browser, so the layout of PythonCard background can > sort of be used as HTML. I thought Neil was going to check the files into > cvs at: > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pythoncard/proto/samples/ > > but I don't see the files (Neil can you check them in?). The original > message is: > http://groups.yahoo.com/group/pythoncard/message/397 OK, Pyker.hta and PykerLaunch.hta are now in CVS. These are HyperText Applications and work only on Windows with a recent version of Internet Explorer. Similar work could be done in Mozilla with the Python interpreter embedded although not too many people have this set up. Pyker.hta displays the PythonCard resource file given as a command line argument. PykerLaunch.hta displays a list of resource files in subdirectories and clicking on one displays it using Pyker.hta. While I don't intent to takes these any further, they are reasonable demonstrations of the ability of browsers to produce diverse user interfaces. It may be possible to turn this code into a PythonCard player that hosts PythonCard applications inside browsers in a similar manner to the current wxPython based host. > Perhaps it might be best for Neil to go into this subject more when he gets > time or the framework stabilizes to the point that someone can experiment > with this without having to update the files with every API change. The API resource file hasn't changed since Pyker was first written so still works. Neil |