I haven't had time to read through all the helpful webpages (I will, though!); my frontdoor.kid looks like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TG/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/ kid/ns#"> <!--This parameter adds the TG header to the page: py:extends="'master.kid'" --> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/> <title>MathLAN Info</title> </head> <body> <div class="main_content"> <h1>MathLAN Info</h1> <h3><input xmlns:py="http://purl.org/kid/ns#" type="button" value="${'Find Open Computer'}"/> </h3> <h4>Data Grid Test</h4> <div py:replace="grid.display()"></div> </div> </body> </html> On Dec 5, 10:17 am, Jim Steil <[EMAIL PROTECTED]> wrote: > Timo wrote: > > Hi, I'm new to TG. Sorry for asking silly questions. > > > Anyway, I really want to implement a DataGrid. I've pretty much just > > started a new project and I don't know where to put what code (and > > none of the TG tutorials seem to want to tell me). > > > For example, right now I'm trying to declare a DataGrid in my > > controllers.py file: > > > import turbogears > > import model > > from turbogears import controllers, expose, widgets > > from turbogears.widgets import DataGrid > > > class Root(controllers.RootController): > > @expose(template="mathlan_info.templates.frontdoor") > > def index(self): > > return dict(grid=DataGrid(fields=[('title', 'Hi There'), > > ('name', 'First Data Grid')])) > > > If you could help me get this widget working, I feel like the rest > > will come easily. I'm just feeling kind of lost without any example > > that I can successfully implement. > > > Thanks for all your help. > > Here is the tutorial I used to get started with the datagrid. > > http://docs.turbogears.org/1.0/IntroductionToWidgets > > -Jim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

