<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
alex23 wrote:
<blockquote
 cite="mid:%3Ceab9bad4-485e-4ba7-a1e4-b220d012280d@m25g2000yqc.googlegroups.com%3E"
 type="cite">
  <pre wrap="">On Jan 12, 1:26 pm, Alan Harris-Reid <a class="moz-txt-link-rfc2396E" href="mailto:aharrisr...@googlemail.com"><aharrisr...@googlemail.com></a>
wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Does anyone know where I can find any decent dynamically-constructed
HTML control classes (dropdown list, table, input field, checkbox, etc.)
written in Python.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
There's pyWeb[1], which seems pretty close to what you're asking for:

  mytable =able(align='center', cellspacing=0, cellpadding=3,
border=
  mytable.add(tr(td("first row"), td("second row")))

While it might be a little heavier than what you're after, you should
also be able to do this with ToscaWidgets[2]. You'd probably have to
make basic widgets for the general HTML controls, but that would give
you a good head-start on writing your own, more complex widgets.
Widgets can be a compilation of Python, HTML, CSS & JS. (I used this
fairly extensively when it used to be called TurboWidgets)

If you want to roll your own from scratch, I'm a big fan of the html
[3] library:

  >>> from html import HTML
  >>> h =TML()
  >>> with h.table(border=', width='987'):
  ...   with h.tr:
  ...     for header in ['column 1', 'column 2']:
  ...       h.th(header)
  ...
  >>> print h
  <table width=87" border="1">
  <tr><th>column 1</th><th>column 2</th></tr>
  </table>

1: <a class="moz-txt-link-freetext" href="http://www.freenet.org.nz/python/pyweb">http://www.freenet.org.nz/python/pyweb</a>
2: <a class="moz-txt-link-freetext" href="http://toscawidgets.org">http://toscawidgets.org</a>
3: <a class="moz-txt-link-freetext" href="http://pypi.python.org/pypi/html/1.7">http://pypi.python.org/pypi/html/1.7</a></pre>
</blockquote>
Hi Alex (I'm assuming that is your name from your nickname)<br>
<br>
Thanks for the reply - I'll check-out all 3 solutions you suggest and
I'm sure I'll find something near to what I am looking for.<br>
<br>
Regards,<br>
Alan<br>
</body>
</html>