From f815ffb224c0953a0a4227e7592283f94f7d3efb Mon Sep 17 00:00:00 2001 From: LoneGit Date: Sat, 27 Apr 2024 01:13:41 +0300 Subject: [PATCH] Formatting --- src/controller.py | 8 ++++++-- src/window.py | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/controller.py b/src/controller.py index 7aed488..def8d7c 100644 --- a/src/controller.py +++ b/src/controller.py @@ -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")) diff --git a/src/window.py b/src/window.py index 478af7a..ac8cf6d 100644 --- a/src/window.py +++ b/src/window.py @@ -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