From e97e276b1fc98ea22c077811b912ecfc8283c8bf Mon Sep 17 00:00:00 2001 From: kienle <kienle@passcal.nmt.edu> Date: Fri, 24 Mar 2023 11:26:12 -0600 Subject: [PATCH] Remove search button --- sohstationviewer/view/main_window.py | 2 +- sohstationviewer/view/ui/main_ui.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/sohstationviewer/view/main_window.py b/sohstationviewer/view/main_window.py index fadb7918b..ca6c9fa4f 100755 --- a/sohstationviewer/view/main_window.py +++ b/sohstationviewer/view/main_window.py @@ -243,7 +243,7 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow): def from_data_card_check_box_clicked(self, is_from_data_card_checked): self.open_files_list.clear() self.set_open_files_list_texts() - self.clear_button.setEnabled(not is_from_data_card_checked) + self.clear_search_action.setEnabled(not is_from_data_card_checked) self.search_button.setEnabled(not is_from_data_card_checked) self.search_line_edit.setEnabled(not is_from_data_card_checked) diff --git a/sohstationviewer/view/ui/main_ui.py b/sohstationviewer/view/ui/main_ui.py index afe7f3f20..6acd1f959 100755 --- a/sohstationviewer/view/ui/main_ui.py +++ b/sohstationviewer/view/ui/main_ui.py @@ -419,10 +419,6 @@ class UIMainWindow(object): 'objectName attribute using QObject.findChildren ' 'without a name.') search_layout.addWidget(self.search_line_edit) - search_layout.addSpacing(2) - self.search_button = QPushButton('Search', self.central_widget) - self.search_button.setFixedWidth(70) - search_layout.addWidget(self.search_button) search_grid = QGridLayout() left_layout.addLayout(search_grid) -- GitLab