"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/pymol/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.

gui.py  (pymol-v2.1.0.tar.bz2):gui.py  (pymol-open-source-2.2.0)
skipping to change at line 47 skipping to change at line 47
except ImportError: except ImportError:
return None return None
def createlegacypmgapp(): def createlegacypmgapp():
import pymol.plugins.legacysupport as m import pymol.plugins.legacysupport as m
return m.createlegacypmgapp() return m.createlegacypmgapp()
# external gui control # external gui control
def ext_hide(_self=cmd): def ext_hide(_self=cmd):
qtwindow = get_qtwindow()
if qtwindow is not None:
print('ignoring gui.ext_hide')
return
pymol = _self._pymol pymol = _self._pymol
if pymol._ext_gui != None: if pymol._ext_gui != None:
pymol._ext_gui.fifo.put('self.root.withdraw()') pymol._ext_gui.fifo.put('self.root.withdraw()')
else: else:
pass pass
def ext_show(_self=cmd): def ext_show(_self=cmd):
qtwindow = get_qtwindow()
if qtwindow is not None:
print('ignoring gui.ext_show')
return
pymol = _self._pymol pymol = _self._pymol
if pymol._ext_gui != None: if pymol._ext_gui != None:
pymol._ext_gui.fifo.put('self.root.deiconify()') pymol._ext_gui.fifo.put('self.root.deiconify()')
else: else:
pass pass
# common actions # common actions
def save_as(_self=cmd): def save_as(_self=cmd):
qtwindow = get_qtwindow()
if qtwindow is not None:
qtwindow.session_save_as()
return
pymol = _self._pymol pymol = _self._pymol
if pymol._ext_gui != None: if pymol._ext_gui != None:
pymol._ext_gui.fifo.put('self.skin.session_save_as()') pymol._ext_gui.fifo.put('self.skin.session_save_as()')
else: else:
pass pass
def save_image(_self=cmd): def save_image(_self=cmd):
qtwindow = get_qtwindow()
if qtwindow is not None:
qtwindow.file_save_png()
return
pymol = _self._pymol pymol = _self._pymol
if pymol._ext_gui != None: if pymol._ext_gui != None:
pymol._ext_gui.fifo.put('self.skin.file_save_png()') pymol._ext_gui.fifo.put('self.skin.file_save_png()')
else: else:
pass pass
 End of changes. 4 change blocks. 
0 lines changed or deleted 20 lines changed or added

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