def set_value(self, column=<NUM_LIT:0>, row=<NUM_LIT:0>, value='<STR_LIT>', block_events=False):
if block_events: self.block_events()<EOL>while column > self._widget.columnCount()-<NUM_LIT:1>: self._widget.insertColumn(self._widget.columnCount())<EOL>while row    > self._widget.rowCount()   -<NUM_LIT:1>: self._widget.insertRow(   self._widget.rowCount())<EOL>self._widget.setItem(row, column, _g.Qt.QtGui.QTableWidgetItem(str(value)))<EOL>if block_events: self.unblock_events()<EOL>return self<EOL>
Sets the value at column, row. This will create elements dynamically,
and in a totally stupid while-looping way.

Setting block_events=True will temporarily block the widget from
sending any signals when setting the value.