mirror of https://github.com/python/cpython.git
14 lines
219 B
Python
14 lines
219 B
Python
|
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()
|