From 64f8e4059cfa83b15aed87b992393dcdaacea9d0 Mon Sep 17 00:00:00 2001 From: Lev Kozlov Date: Mon, 5 Aug 2024 21:24:27 +0300 Subject: [PATCH] fix: rearrange buttons --- src/window.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/window.py b/src/window.py index 01752a0..9e71d72 100644 --- a/src/window.py +++ b/src/window.py @@ -441,9 +441,6 @@ def get_cur_row(): buttons_layout.addWidget(self.save_gcode_button, get_cur_row(), 3) buttons_layout.setColumnMinimumWidth(1, 230) - self.color_model_button = QPushButton(self.locale.ColorModel) - buttons_layout.addWidget(self.color_model_button, get_cur_row(), 3) - self.slice_vip_button = QPushButton(self.locale.SliceVip) buttons_layout.addWidget(self.slice_vip_button, get_next_row(), 1, 1, 2) @@ -499,6 +496,9 @@ def init_figure_panel(self): self.remove_plane_button = QPushButton(self.locale.DeletePlane) bottom_layout.addWidget(self.remove_plane_button, 3, 2) + self.color_model_button = QPushButton(self.locale.ColorModel) + bottom_layout.addWidget(self.color_model_button, 3, 3) + self.edit_figure_button = QPushButton(self.locale.EditFigure) bottom_layout.addWidget(self.edit_figure_button, 4, 2)