author | Dmitriy Morozov <dmitriy@mrzv.org> |
Thu, 24 Mar 2011 15:15:07 -0700 | |
changeset 11 | d2b9ee185b38 |
parent 10 | bc10701b4081 |
child 12 | 2d50a82295ab |
PyVEFViewer.py | file | annotate | diff | comparison | revisions |
--- a/PyVEFViewer.py Tue Mar 22 14:17:09 2011 -0700 +++ b/PyVEFViewer.py Thu Mar 24 15:15:07 2011 -0700 @@ -52,6 +52,12 @@ filename = QtGui.QFileDialog.getOpenFileName(self, 'Open file') self.read_from_extension(str(filename)) self.normalize_view() + elif e.key() == QtCore.Qt.Key_P: + if self.camera().type() == Camera.ORTHOGRAPHIC: + self.camera().setType(Camera.PERSPECTIVE) + else: + self.camera().setType(Camera.ORTHOGRAPHIC) + self.updateGL() else: super(VEFViewer, self).keyPressEvent(e)