"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "examples/devel/my_ext_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.

my_ext_gui.py  (pymol-v1.8.6.0.tar.bz2):my_ext_gui.py  (pymol-v2.1.0.tar.bz2)
skipping to change at line 24 skipping to change at line 24
# win: pymolwin.exe +2 -qiF -N my_ext_gui -X 100 -Y 100 -H 400 -W 400 # win: pymolwin.exe +2 -qiF -N my_ext_gui -X 100 -Y 100 -H 400 -W 400
# (NOTE: +2 option keeps open the console window for debugging) # (NOTE: +2 option keeps open the console window for debugging)
# #
# #
# PyMOL will first import this module, and then call an __init__ # PyMOL will first import this module, and then call an __init__
# method which should fire off a thread and return, as shown below # method which should fire off a thread and return, as shown below
import threading import threading
def run(pymol): def run(pymol):
print "\nNow start my custom gui here..." print("\nNow start my custom gui here...")
# next step might be to import wxPython, set the pymol property, # next step might be to import wxPython, set the pymol property,
# open windows, etc. # open windows, etc.
# just for kicks, let's put up some up animated content # just for kicks, let's put up some up animated content
# NOTE that the PyMOL API is thread-safe, so your gui thread # NOTE that the PyMOL API is thread-safe, so your gui thread
# can message it asynchronously while the user is able to # can message it asynchronously while the user is able to
# interact with the display window # interact with the display window
pymol.cmd.set("sweep_mode",3) pymol.cmd.set("sweep_mode",3)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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