Hi,
I'm abolutely new to web.py and to web programming in general and was
attracted by the first very quick results I got with web.py. But now I'm
stuck:
Consider this stripped down but operational code:
index.py:
import web
from web import form
urls = ('/', 'index')
render = web.template.render('')
app = web.application(urls, globals())
my_form = form.Form(
form.Button("", html="TopLeft"),
form.Button("", html="TopRight"),
form.Button("", html="BottomLeft"),
form.Button("", html="BottomRight")
)
class index:
def GET(self):
form = my_form()
return render.index(form, "")
if __name__ == '__main__':
app.run()
index.html:
$def with (form, title)
<!doctype html>
<html>
<body>
$:form.render()
</body>
</html>
How do I manage to position the buttons to the positions that their labels
are indicating?
>From the generated HTML code, I see that the buttons are put into a one
colunm table, but I can't figure out how to control its rows and columns.
Thanks for any help,
Chris
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.