Skip to content

Commit

Permalink
Updated comments in SPCWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Blumberg committed Jan 11, 2019
1 parent 1d0d7c2 commit 525f06a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sharppy/viz/SPCWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ def showCursorMenu(self, pos):
self.setFocus()

def swapInset(self):
logging.debug("Swapping an inset.")
logging.debug("Swapping the " + self.inset_to_swap + " inset.")
## This will swap either the left or right inset depending on whether or not the
## self.inset_to_swap value is LEFT or RIGHT.
a = self.menu_ag.checkedAction()
Expand Down Expand Up @@ -922,14 +922,13 @@ def rmProfileCollection(self, menu_name):
actions[names.index("Remove")].setVisible(False)

def keyPressEvent(self, e):
#TODO: Up and down keys to loop through profile collection members.
if e.key() == Qt.Key_Left:
if e.key() == Qt.Key_Left: # Step forward/backwards in time
self.spc_widget.advanceTime(-1)
self.setInterpolated(self.spc_widget.isInterpolated())
elif e.key() == Qt.Key_Right:
self.spc_widget.advanceTime(1)
self.setInterpolated(self.spc_widget.isInterpolated())
elif e.key() == Qt.Key_Up:
elif e.key() == Qt.Key_Up: # Change focus from member to member of the ensemble
self.spc_widget.advanceHighlight(1)
elif e.key() == Qt.Key_Down:
self.spc_widget.advanceHighlight(-1)
Expand All @@ -941,6 +940,7 @@ def keyPressEvent(self, e):
# Save an image
self.spc_widget.saveimage()
elif e.key() == Qt.Key_W:
# Return focus to the Sounding Picker
self.focusPicker()

def closeEvent(self, e):
Expand Down

0 comments on commit 525f06a

Please sign in to comment.