Initial revision

This commit is contained in:
Guido van Rossum 1995-09-07 19:42:57 +00:00
parent 23d7b4bbfd
commit c66394d049
1 changed files with 13 additions and 0 deletions

13
Demo/tkinter/guido/imageview.py Executable file
View File

@ -0,0 +1,13 @@
from Tkinter import *
import sys
def main():
filename = sys.argv[1]
root = Tk()
label = Label(root)
img = PhotoImage(file=filename)
label['image'] = img
label.pack()
root.mainloop()
main()