"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/pymol/gui.py" between
pymol-v1.8.6.0.tar.bz2 and pymol-v2.1.0.tar.bz2

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-v1.8.6.0.tar.bz2):gui.py  (pymol-v2.1.0.tar.bz2)
skipping to change at line 24 skipping to change at line 24
# abstract (external or internal) gui control interface # abstract (external or internal) gui control interface
if __name__=='pymol.gui': if __name__=='pymol.gui':
import pymol import pymol
cmd = __import__("sys").modules["pymol.cmd"] cmd = __import__("sys").modules["pymol.cmd"]
def get_pmgapp(): def get_pmgapp():
''' '''
TODO move to this module Returns the PMGApp instance.
''' '''
from pymol import plugins if pymol._ext_gui is None:
return plugins.get_pmgapp() pymol._ext_gui = createlegacypmgapp()
return pymol._ext_gui
def get_qtwindow():
'''
Returns the PyMOLQtGUI/QMainWindow instance, or None if not available.
'''
try:
from pmg_qt.pymol_qt_gui import window
return window
except ImportError:
return None
def createlegacypmgapp():
import pymol.plugins.legacysupport as m
return m.createlegacypmgapp()
# external gui control # external gui control
def ext_hide(_self=cmd): def ext_hide(_self=cmd):
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
 End of changes. 2 change blocks. 
3 lines changed or deleted 18 lines changed or added

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