From f310afb4c68c7615b61d3b0b6229208d17927704 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 24 Jul 2018 14:33:38 +0200 Subject: [PATCH] [minor] renaming QtAction --- PyLoT.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/PyLoT.py b/PyLoT.py index e893ac42..385a5065 100755 --- a/PyLoT.py +++ b/PyLoT.py @@ -504,15 +504,15 @@ class MainWindow(QMainWindow): # pickToolActions = (selectStation, ) # pickToolBar.setObjectName("PickTools") # self.addActions(pickToolBar, pickToolActions) - self.locateEvent = self.createAction(parent=self, text='locate the event', - slot=self.locate_event, - shortcut='Alt+Ctrl+L', - icon=locate_icon, - tip='Locate the event using ' + self.locateEventAction = self.createAction(parent=self, text='locate the event', + slot=self.locate_event, + shortcut='Alt+Ctrl+L', + icon=locate_icon, + tip='Locate the event using ' 'the displayed manual arrivals.') - self.locateEvent.setEnabled(False) + self.locateEventAction.setEnabled(False) - locationToolActions = (self.locateEvent,) + locationToolActions = (self.locateEventAction,) # add top menu self.fileMenu = self.menuBar().addMenu('&File') @@ -1911,7 +1911,7 @@ class MainWindow(QMainWindow): event = self.get_current_event() if event.pylot_picks: self.drawPicks(picktype='manual') - self.locateEvent.setEnabled(True) + self.locateEventAction.setEnabled(True) self.qualities_action.setEnabled(True) if event.pylot_autopicks: self.drawPicks(picktype='auto') @@ -1974,7 +1974,7 @@ class MainWindow(QMainWindow): self.loadpilotevent.setEnabled(False) self.compare_action.setEnabled(False) self.qualities_action.setEnabled(False) - self.locateEvent.setEnabled(False) + self.locateEventAction.setEnabled(False) if not refresh_plot: self.wf_scroll_area.setVisible(False) self.no_data_label.setVisible(True) @@ -2339,7 +2339,7 @@ class MainWindow(QMainWindow): else: self.update_status('picks discarded ({0})'.format(station)) if not self.get_loc_flag() and self.check4Loc(): - self.locateEvent.setEnabled(True) + self.locateEventAction.setEnabled(True) self.set_loc_flag(True) elif self.get_loc_flag() and not self.check4Loc(): self.set_loc_flag(False)