Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneGit committed Apr 26, 2024
1 parent fe24117 commit f815ffb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,12 @@ 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.cancel_movement, True))
self.view.return_action.clicked.connect(partial(self.view.cancel_movement, False))
self.view.cancel_action.clicked.connect(
partial(self.view.cancel_movement, True)
)
self.view.return_action.clicked.connect(
partial(self.view.cancel_movement, 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 @@ -780,7 +780,7 @@ def save_current_movement(self):
self.stlActor.movements_array = movements
self.stlActor.current_movement_index = len(movements) - 1

def cancel_movement(self, cancel = True):
def cancel_movement(self, cancel=True):
current_index = self.stlActor.current_movement_index
movements = self.stlActor.movements_array

Expand Down

0 comments on commit f815ffb

Please sign in to comment.