You cannot do DIV(..., _data-role="collapsible") because _data-role is not a valid keyword argument in Python due to the hyphen. Instead, you could do:
DIV(..., **{'_data-role': 'collapsible'}) or mydiv = DIV(...) mydiv['_data-role'] = 'collapsible' Anthony On Tuesday, September 27, 2011 2:10:00 PM UTC-4, Murray3 wrote: > > how do we do this with DIV() Helper? > > for instance in interactive i want to return a div element for > collapsible elements > >>>print gluon.DIV( data-role="collapsible" data-theme="contention") > > thanks > >