button color changed, 3 comp. window

This commit is contained in:
Marcel Paffrath 2017-04-12 15:20:06 +02:00
parent bb60093657
commit e75c34afeb
2 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
0656-dirty bb60-dirty

View File

@ -720,13 +720,13 @@ class PickDlg(QDialog):
self.leave_picking_mode() self.leave_picking_mode()
def init_p_pick(self): def init_p_pick(self):
self.set_button_color(self.p_button, 'green') self.set_button_color(self.p_button, 'yellow')
self.updateCurrentLimits() self.updateCurrentLimits()
self.activatePicking() self.activatePicking()
self.currentPhase = 'P' self.currentPhase = 'P'
def init_s_pick(self): def init_s_pick(self):
self.set_button_color(self.s_button, 'green') self.set_button_color(self.s_button, 'yellow')
self.updateCurrentLimits() self.updateCurrentLimits()
self.activatePicking() self.activatePicking()
self.currentPhase = 'S' self.currentPhase = 'S'
@ -879,10 +879,10 @@ class PickDlg(QDialog):
print(self.currentPhase) print(self.currentPhase)
if self.currentPhase == 'P': if self.currentPhase == 'P':
self.set_button_color(self.p_button, 'red') self.set_button_color(self.p_button, 'green')
self.setIniPickP(gui_event, wfdata, trace_number) self.setIniPickP(gui_event, wfdata, trace_number)
elif self.currentPhase == 'S': elif self.currentPhase == 'S':
self.set_button_color(self.s_button, 'red') self.set_button_color(self.s_button, 'green')
self.setIniPickS(gui_event, wfdata) self.setIniPickS(gui_event, wfdata)
self.zoomAction.setEnabled(False) self.zoomAction.setEnabled(False)