"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/pmg_qt/pymol_qt_gui.py" between
pymol-v2.1.0.tar.bz2 and pymol-open-source-2.2.0.tar.gz

About: PyMOL is a Python-enhanced molecular graphics tool. It excels at 3D visualization of proteins, small molecules, density, surfaces, and trajectories. It also includes molecular editing, ray tracing, and movies. Open Source version.

pymol_qt_gui.py  (pymol-v2.1.0.tar.bz2):pymol_qt_gui.py  (pymol-open-source-2.2.0)
skipping to change at line 69 skipping to change at line 69
viewportsignal = QtCore.Signal(int, int) viewportsignal = QtCore.Signal(int, int)
def pymolviewport(self, w, h): def pymolviewport(self, w, h):
cw, ch = self.cmd.get_viewport() cw, ch = self.cmd.get_viewport()
pw = self.pymolwidget pw = self.pymolwidget
scale = pw.fb_scale scale = pw.fb_scale
# maintain aspect ratio # maintain aspect ratio
if h < 1: if h < 1:
if w < 1: if w < 1:
pw.resizeGL(int(scale * pw.width()), int(scale * pw.height())) pw.pymol.reshape(int(scale * pw.width()),
int(scale * pw.height()), True)
return return
h = (w * ch) / cw h = (w * ch) / cw
if w < 1: if w < 1:
w = (h * cw) / ch w = (h * cw) / ch
win_size = self.size() win_size = self.size()
delta = QtCore.QSize(w - cw, h - ch) / scale delta = QtCore.QSize(w - cw, h - ch) / scale
# window resize # window resize
self.resize(delta + win_size) self.resize(delta + win_size)
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)