Update of /cvsroot/jtoolkit/jToolkit/widgets
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19803
Modified Files:
widgets.py
Log Message:
added id parameter to Division
Index: widgets.py
===================================================================
RCS file: /cvsroot/jtoolkit/jToolkit/widgets/widgets.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** widgets.py 10 Feb 2004 08:34:01 -0000 1.17
--- widgets.py 10 Feb 2004 08:34:45 -0000 1.18
***************
*** 357,363 ****
class Division(ContentWidget):
"""an html div tag"""
! def __init__(self, contents=[], newattribs={}):
"""constructs the div tag"""
! ContentWidget.__init__(self, 'div', contents, newattribs)
def getrgb(color, default = '&H808080'):
--- 357,366 ----
class Division(ContentWidget):
"""an html div tag"""
! def __init__(self, contents=[], id=None, newattribs={}):
"""constructs the div tag"""
! ContentWidget.__init__(self, 'div', contents)
! if id is not None:
! self.attribs = {'id':id}
! self.overrideattribs(newattribs)
def getrgb(color, default = '&H808080'):
|