comparison browser_side/panels.py @ 178:7a349be99a77

dummy commit, just for test bug 8
author Goffi <goffi@goffi.org>
date Fri, 25 Jan 2013 00:49:34 +0100
parents ba95cd824e06
children 8475a29d7214
comparison
equal deleted inserted replaced
177:ba95cd824e06 178:7a349be99a77
883 td_elt = _widget.getElement().parentNode 883 td_elt = _widget.getElement().parentNode
884 DOM.setStyleAttribute(td_elt, "width", "%.2f%%" % width) 884 DOM.setStyleAttribute(td_elt, "width", "%.2f%%" % width)
885 885
886 last_row = max(0, self.flextable.getRowCount()-1) 886 last_row = max(0, self.flextable.getRowCount()-1)
887 cellFormatter.setColSpan(last_row, 0, self._max_cols) 887 cellFormatter.setColSpan(last_row, 0, self._max_cols)
888 888
889 def addWidget(self, wid): 889 def addWidget(self, wid):
890 """Add a widget to a new cell on the next to last row""" 890 """Add a widget to a new cell on the next to last row"""
891 last_row = max(0, self.flextable.getRowCount()-1) 891 last_row = max(0, self.flextable.getRowCount()-1)
892 print "putting widget %s at %d, %d" % (wid, last_row, 0) 892 print "putting widget %s at %d, %d" % (wid, last_row, 0)
893 self.changeWidget(last_row, 0, wid) 893 self.changeWidget(last_row, 0, wid)