gui.py (pymol-open-source-2.2.0) | : | gui.py (pymol-open-source-2.3.0) | ||
---|---|---|---|---|
skipping to change at line 17 | skipping to change at line 17 | |||
#G* Please see the accompanying LICENSE file for further information. | #G* Please see the accompanying LICENSE file for further information. | |||
#H* ------------------------------------------------------------------- | #H* ------------------------------------------------------------------- | |||
#I* Additional authors of this source file include: | #I* Additional authors of this source file include: | |||
#-* | #-* | |||
#-* | #-* | |||
#-* | #-* | |||
#Z* ------------------------------------------------------------------- | #Z* ------------------------------------------------------------------- | |||
# abstract (external or internal) gui control interface | # abstract (external or internal) gui control interface | |||
if __name__=='pymol.gui': | import pymol | |||
cmd = __import__("sys").modules["pymol.cmd"] | ||||
import pymol | ||||
cmd = __import__("sys").modules["pymol.cmd"] | ||||
def get_pmgapp(): | def get_pmgapp(): | |||
''' | ''' | |||
Returns the PMGApp instance. | Returns the PMGApp instance. | |||
''' | ''' | |||
if pymol._ext_gui is None: | if pymol._ext_gui is None: | |||
pymol._ext_gui = createlegacypmgapp() | pymol._ext_gui = createlegacypmgapp() | |||
return pymol._ext_gui | return pymol._ext_gui | |||
def get_qtwindow(): | def get_qtwindow(): | |||
End of changes. 1 change blocks. | ||||
4 lines changed or deleted | 2 lines changed or added |