__init__.py (pymol-v1.8.6.0.tar.bz2) | : | __init__.py (pymol-v2.1.0.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 22 | skipping to change at line 22 | |||
#-* | #-* | |||
#Z* ------------------------------------------------------------------- | #Z* ------------------------------------------------------------------- | |||
# pmgui_tk | # pmgui_tk | |||
# TKinter based gui for PyMol | # TKinter based gui for PyMol | |||
# NOTE: must have treads support compiled into python to use this module | # NOTE: must have treads support compiled into python to use this module | |||
# | # | |||
# **This is the only module which should be/need be imported by | # **This is the only module which should be/need be imported by | |||
# **PyMol Programs | # **PyMol Programs | |||
from .PMGApp import * | ||||
import sys, os, threading | import sys, os, threading | |||
import traceback | import traceback | |||
def run(pymol_instance,poll=0,skin=None): | def run(pymol_instance,poll=0,skin=None): | |||
try: | try: | |||
from .PMGApp import PMGApp | ||||
if not hasattr(sys,"argv"): | if not hasattr(sys,"argv"): | |||
sys.argv=["pymol"] | sys.argv=["pymol"] | |||
PMGApp(pymol_instance,skin).run(poll) | PMGApp(pymol_instance,skin).run(poll) | |||
except: | except: | |||
traceback.print_exc() | traceback.print_exc() | |||
def __init__(pymol_instance,poll=0,skin=None): | def __init__(pymol_instance,poll=0,skin=None): | |||
t = threading.Thread(target=run,args=(pymol_instance,poll,skin)) | t = threading.Thread(target=run,args=(pymol_instance,poll,skin)) | |||
t.setDaemon(1) | t.setDaemon(1) | |||
t.start() | t.start() | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |