Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
fly1342
Posted - 09/27/2022 : 02:38:29 AM When I start a script I draw about 20 graphs at once. Is there a way to close all graph windows at once using python??
john
1 L A T E S T R E P L I E S (Newest First)
cpyang
Posted - 09/27/2022 : 7:55:10 PM You can use a very simple LabTalk command,
import originpro as op
op.lt_exec("doc -e LP {win -cp %H}")
This loops through each graph window (LP), and post a message to close it (-cp).