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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---