Args: use_title (bool): enable title bar. Note that the title bar is treated as a row (it is comprised in n_rows count) n_rows (int): number of rows to create n_columns (int): number of columns to create kwargs: See Container._
(self, n_rows=2, n_columns=2, use_title=True, editable=False, *args, **kwargs)
| 3006 | def use_title(self, value): self.set_use_title(value) |
| 3007 | |
| 3008 | def __init__(self, n_rows=2, n_columns=2, use_title=True, editable=False, *args, **kwargs): |
| 3009 | """ |
| 3010 | Args: |
| 3011 | use_title (bool): enable title bar. Note that the title bar is |
| 3012 | treated as a row (it is comprised in n_rows count) |
| 3013 | n_rows (int): number of rows to create |
| 3014 | n_columns (int): number of columns to create |
| 3015 | kwargs: See Container.__init__() |
| 3016 | """ |
| 3017 | self.__column_count = 0 |
| 3018 | self.__use_title = use_title |
| 3019 | super(TableWidget, self).__init__(*args, **kwargs) |
| 3020 | self._editable = editable |
| 3021 | self.set_use_title(use_title) |
| 3022 | self.set_column_count(n_columns) |
| 3023 | self.set_row_count(n_rows) |
| 3024 | self.css_display = 'table' |
| 3025 | |
| 3026 | def set_use_title(self, use_title): |
| 3027 | """Returns the TableItem instance at row, column cordinates |
nothing calls this directly
no test coverage detected