Alberto Valverde schrieb:
>
> Haven't tested it but you *might* get away with multiple inheritance:
>
> class InputDataGrid(CompoundInputWidget, DataGrid):
> pass
Good idea but unfortunatly it didn't work out of the box:
tourpoints = InputDataGrid(fields=[("Anzeige", testfunc),("Eingabe",
widgets.TextField())])
File "turbogears/widgets/meta.py", line 142, in widget_init
File "turbogears/widgets/base.py", line 291, in __init__
File "turbogears/widgets/meta.py", line 142, in widget_init
File "turbogears/widgets/forms.py", line 143, in __init__
File "turbogears/widgets/meta.py", line 142, in widget_init
TypeError: __init__() got multiple values for keyword argument 'fields'
--
Greg
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---