On Jan 1, 2008 11:18 AM, Dinesh B Vadhia <<a href="mailto:dineshbvadhia@hotmail.com">dineshbvadhia@hotmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font color="#000080">I want to display a fixed number of same-size (jpeg)
images on a web page. The images displayed will change on user
input.</font><br> </div></div></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div bgcolor="#ffffff"><div><font color="#000080">
</font></div><div><font color="#000080">I can use PIL to write the code but has anyone come
across open source code that already does this? Thank-you</font></div></div></blockquote><div><br>You only need PIL if you're creating the pictures with the python code. If you're merely choosing which pictures to display based on the input, you merely need to generate different HTML (or have a javascript page, and return different XML from your python backend).
<br><br>If you're really trying to avoid writing your own HTML out, the table example from GWT(<a href="http://gwt.google.com/samples/KitchenSink/KitchenSink.html#Panels">http://gwt.google.com/samples/KitchenSink/KitchenSink.html#Panels
</a>) will do what you're looking for. Pyjamas(<a href="http://code.google.com/p/pyjamas/">http://code.google.com/p/pyjamas/</a>) will generate GWT code from python for you.<br><br> --Michael<br><br></div></div>
-- <br>Michael Langford<br>Phone: 404-386-0495<br>Consulting: <a href="http://www.RowdyLabs.com">http://www.RowdyLabs.com</a>