From: Tamas H. <bio...@gm...> - 2020-08-31 19:22:36
|
It seems that pymol refresh the screen only after the script completed. I tried cmd.refresh(), cmd.rebuild(obj) in the loop, but they did not help either. I do not know the solution. On 8/31/20 8:33 PM, ZHANG Cheng wrote: > Not work. > > time.sleep( 5 ) > did not outpput any error, but freeze for a few seconds. However, > nothing come out on the Pymol interface. > > ------------------ Original ------------------ > *From:* "Tamas Hegedus" <bio...@gm...>; > *Date:* Tue, Sep 1, 2020 02:21 AM > *To:* "pymol-users"<pym...@li...>; > *Subject:* Re: [PyMOL] How to hold/wait for some time? > > This one? > https://www.tutorialspoint.com/python/time_sleep.htm > > On 8/31/20 7:51 PM, ZHANG Cheng wrote: >> I use the command below, trying to display the object one by one, >> with 2 seconds in between. So how to "wait for 2 seconds"? >> >> from pymol import cmd >> cmd.enable('protein_1') >> # how to hold for 2 seconds? >> cmd.disable('protein_1') >> cmd.enable('protein_2') >> # how to hold for 2 seconds? >> cmd.disable('protein_2') >> >> Thank you! >> >> >> >> >> _______________________________________________ >> PyMOL-users mailing list >> Archives:http://www.mail-archive.com/pym...@li... >> Unsubscribe:https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe > |