[table] working headers

This commit is contained in:
2021-04-26 16:36:03 +02:00
parent 3804e89bab
commit 5f1c70f49c
3 changed files with 101 additions and 11 deletions

View File

@@ -38,8 +38,15 @@ class NixView(QMainWindow):
def on_item_selected(self, current):
self._current_item = current
current_item_type = current._node_descriptor.entity_type
enable = current_item_type == NodeType.MultiTag or current_item_type == NodeType.DataArray or current_item_type == NodeType.Tag
self.enable_plot_view(current_item_type)
self.enable_table_view(current_item_type)
def enable_plot_view(self, entity_type):
enable = entity_type == NodeType.MultiTag or entity_type == NodeType.DataArray or entity_type == NodeType.Tag
self._plot_action.setEnabled(enable)
def enable_table_view(self, entity_type):
enable = entity_type == NodeType.DataArray or entity_type == NodeType.DataFrame
self._table_action.setEnabled(enable)
def create_actions(self):