mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			205 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			205 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
from Tkinter import *
 | 
						|
import sys
 | 
						|
 | 
						|
def main():
 | 
						|
    filename = sys.argv[1]
 | 
						|
    root = Tk()
 | 
						|
    img = PhotoImage(file=filename)
 | 
						|
    label = Label(root, image=img)
 | 
						|
    label.pack()
 | 
						|
    root.mainloop()
 | 
						|
 | 
						|
main()
 |