Suspend updates: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
When set, [[Suspend_pdates]] stops PyMOL from updating the GUI whenever changes are made.  This can be used to mask multiple operations from the user to make it appear as if only one operation occurred.  See examples.
When set, [[Suspend_updates]] stops PyMOL from updating the GUI whenever changes are made.  This can be used to mask multiple operations from the user to make it appear as if only one operation occurred.  See examples.


= Example =
= Example =
Line 14: Line 14:
# unset suspend_updates
# unset suspend_updates
</source>
</source>
===PYMOL API===
<source lang="python">
cmd.set('suspend_updates', 'on')
cmd.set('suspend_updates', 'off')
</source>
===SEE ALSO===
[[Show]], [[Hide]], [[Enable]], [[Disable]]


[[Category:Settings]]
[[Category:Settings]]

Latest revision as of 16:17, 20 May 2014

When set, Suspend_updates stops PyMOL from updating the GUI whenever changes are made. This can be used to mask multiple operations from the user to make it appear as if only one operation occurred. See examples.

Example

load $TUT/1hpv.pdb
set suspend_updates
# remove the waters
remove resn HOH
# the waters are still visible
# until we unset suspend_updates
#
# Now, to get UI responsiveness type
#
# unset suspend_updates

PYMOL API

cmd.set('suspend_updates', 'on')
cmd.set('suspend_updates', 'off')

SEE ALSO

Show, Hide, Enable, Disable