Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneGit committed May 2, 2024
1 parent 42cd80b commit 5c54124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,8 @@ def _connect_signals(self):
self.view.picture_slider.valueChanged.connect(self.change_layer_view)
self.view.move_button.clicked.connect(self.move_model)
self.view.place_button.clicked.connect(self.place_model)
self.view.cancel_action.clicked.connect(
partial(self.view.shift_state, True)
)
self.view.return_action.clicked.connect(
partial(self.view.shift_state, False)
)
self.view.cancel_action.clicked.connect(partial(self.view.shift_state, True))
self.view.return_action.clicked.connect(partial(self.view.shift_state, False))
self.view.load_model_button.clicked.connect(self.open_file)
self.view.slice3a_button.clicked.connect(partial(self.slice_stl, "3axes"))
self.view.slice_vip_button.clicked.connect(partial(self.slice_stl, "vip"))
Expand Down
2 changes: 1 addition & 1 deletion src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def save_current_movement(self):
self.stlActor.movements_array = movements
self.stlActor.current_movement_index = len(movements) - 1

# We move on to the nearest state of movement of the model.
# We move on to the nearest state of movement of the model.
# If cancel=True, go back. If cancel=False, move forward.
def shift_state(self, cancel=True):
current_index = self.stlActor.current_movement_index
Expand Down

0 comments on commit 5c54124

Please sign in to comment.