![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Hello 
		
		
		
		
		
		
		
		
	
	I am using Tkinter, whenever I close any window the script remains running and it does not terminate. This is a huge issue for me any solutions? Regards  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Take a look at this thread for an example script that embeds the Vizard window in a Tk application.
		 
		
		
		
		
		
		
		
		
	
	 | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Hello 
		
		
		
		
		
		
		
		
	
	I am not facing coding issues with Tkinter I am able to use it, the problem is that any script that uses Tkinter does not terminate when I close the script. Regards  | 
| 
		 
			 
			#4  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Yes I'm having the same problem. It seems that calling root.destroy() should terminate the tkinter mainloop. However in Vizard mine keeps running regardless. Not even sys.exit() does anything
		 
		
		
		
		
		
		
		
		
	
	 | 
| 
		 
			 
			#5  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Can you post an example script that replicates the issue for you?
		 
		
		
		
		
		
		
		
		
	
	 | 
![]()  | 
	
	
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| starting Vizard from a Python script | hotspur1 | Vizard | 12 | 06-12-2019 01:03 PM | 
| Python script latency after exiting when using InterSense IC2+ | fordprefect | Vizard | 1 | 03-19-2014 12:58 AM | 
| How are files associated/how should they be saved (python script + images) | mhead10 | Vizard | 1 | 03-26-2012 11:58 AM | 
| Simplest script not working | vasiliys | Vizard | 2 | 10-25-2011 11:24 AM | 
| script file available - but missing | spdegabrielle | Vizard | 1 | 05-06-2009 11:04 AM |