Fixed a bug in HTML table widths; allow args to make_basic_stylesheet; add scrollbars to tabbed items

svn: r13660
This commit is contained in:
Doug Blank
2009-11-23 01:39:29 +00:00
parent 8e0593d7ad
commit 2ed9ac56e4
3 changed files with 68 additions and 7 deletions

View File

@ -83,11 +83,10 @@ class Table(object):
def __init__(self, doc):
self.doc = doc
# None is paperstyle, which is ignored:
self.doc = Doc(HtmlDoc.HtmlDoc(make_basic_stylesheet(), None))
self.doc = Doc(HtmlDoc.HtmlDoc(make_basic_stylesheet(Table={"set_width":95}), None))
self.doc.doc._backend = HtmlBackend()
# You can set elements id, class, etc:
# self.doc.doc.htmllist += [Html('div', id="grampstextdoc")]
self.doc.doc.htmllist += [Html('div')]
self.doc.doc.htmllist += [Html('div', style="overflow: auto; height:150px; background-color: white;")]
def columns(self, *args):
self.table.columns(*args)