Skip to content

Commit

Permalink
Change tab order
Browse files Browse the repository at this point in the history
  • Loading branch information
s-simoncelli committed Feb 18, 2024
1 parent e11a010 commit efe8d8a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
25 changes: 12 additions & 13 deletions pywr_editor/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,19 +612,7 @@ def setup_toolbar(self) -> None:
self.app_actions.get("find-orphaned-parameters"), is_large=False
)

# Run tab
run = self.toolbar.add_tab("Run")
time_stepper_panel = run.add_panel("Time-stepper")
time_stepper_panel.add_widget(TimeStepperWidget(self))

nodes_panel = run.add_panel("Controls")
nodes_panel.add_widget(RunWidget(self))

results_panel = run.add_panel("Results")
results_panel.add_button(self.app_actions.get("run-inspector"))
# results_panel.add_button(self.app_actions.get("plot-data"))

# Schematic tab
# Operation tab
operation_tab = self.toolbar.add_tab("Operations")
nodes_panel = operation_tab.add_panel("Undo", layout="vertical")
nodes_panel.add_button(self.app_actions.get("undo"), is_large=False)
Expand All @@ -643,6 +631,17 @@ def setup_toolbar(self) -> None:
nodes_panel = operation_tab.add_panel("Nodes Library", show_name=False)
nodes_panel.add_widget(SchematicItemsLibrary(self))

# Run tab
run = self.toolbar.add_tab("Run")
time_stepper_panel = run.add_panel("Time-stepper")
time_stepper_panel.add_widget(TimeStepperWidget(self))

nodes_panel = run.add_panel("Controls")
nodes_panel.add_widget(RunWidget(self))

results_panel = run.add_panel("Results")
results_panel.add_button(self.app_actions.get("run-inspector"))

# View tab
schematic_tab = self.toolbar.add_tab("Schematic")
zoom_panel = schematic_tab.add_panel("Zoom")
Expand Down
2 changes: 1 addition & 1 deletion pywr_editor/schematic/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def paint(
"""
painter.setPen(QPen(Color("gray", 400).hex))
painter.setBrush(Qt.GlobalColor.white)
painter.drawRoundedRect(self.boundingRect(), 10, 10)
painter.drawRoundedRect(self.boundingRect(), 8, 8)

@property
def shadow(self) -> QGraphicsDropShadowEffect:
Expand Down

0 comments on commit efe8d8a

Please sign in to comment.