Skip to content

Commit

Permalink
Small updates for formatting/behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Jul 24, 2024
1 parent 397b920 commit 658483c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openmc_plotter/docks.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ def __init__(self, model, font_metric, parent=None):
for mesh_id in self.model.cpp_mesh_ids():
mesh_item = QTreeWidgetItem(self.meshTree, (f'Mesh {mesh_id}',))
mesh_item.setFlags(mesh_item.flags() | QtCore.Qt.ItemIsUserCheckable)
mesh_item.setCheckState(0, QtCore.Qt.Checked)
mesh_item.setCheckState(0, QtCore.Qt.Unchecked)
self.mesh_items.append((mesh_id, mesh_item))
self.meshTree.addTopLevelItem(mesh_item)

self.meshTree.setHeaderHidden(True)

# Create submit button
self.applyButton = QPushButton("Apply Changes")
# Mac bug fix
Expand Down

0 comments on commit 658483c

Please sign in to comment.