def __init__(self, context_model=None, parent=None):
super(ContextTableWidget, self).__init__(self.default_row_count,<EOL><NUM_LIT:2>, parent)<EOL>ContextViewMixin.__init__(self, context_model)<EOL>self.diff_mode = False<EOL>self.diff_context_model = None<EOL>self.diff_from_source = False<EOL>self._show_effective_request = False<EOL>self._current_variant = None<EOL>self.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)<EOL>self.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)<EOL>hh = self.horizontalHeader()<EOL>hh.setDefaultSectionSize(<NUM_LIT:12> * self.fontMetrics().height())<EOL>vh = self.verticalHeader()<EOL>vh.setResizeMode(QtGui.QHeaderView.ResizeToContents)<EOL>vh.setVisible(False)<EOL>self.delegate = CellDelegate(self)<EOL>self.setItemDelegate(self.delegate)<EOL>self.setShowGrid(False)<EOL>self.currentCellChanged.connect(self._currentCellChanged)<EOL>self.itemSelectionChanged.connect(self._itemSelectionChanged)<EOL>self.refresh()<EOL>
Create a context table.