16 lines
		
	
	
	
		
			448 B
		
	
	
	
		
			Text
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
	
		
			448 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| 
								 | 
							
								# ----------------------------------------------------------------------
							 | 
						||
| 
								 | 
							
								#  DEMO: fileselectiondialog in [incr Widgets]
							 | 
						||
| 
								 | 
							
								# ----------------------------------------------------------------------
							 | 
						||
| 
								 | 
							
								package require Iwidgets 4.0
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								iwidgets::fileselectiondialog .fsd -modality application
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								button .select -text "Files..." -command {
							 | 
						||
| 
								 | 
							
								    if {[.fsd activate]} {
							 | 
						||
| 
								 | 
							
								        puts "selected: [.fsd get]"
							 | 
						||
| 
								 | 
							
								    } else {
							 | 
						||
| 
								 | 
							
								        puts ""
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								pack .select -side left
							 |