mirror of https://github.com/python/cpython.git
Initial revision
This commit is contained in:
parent
23d7b4bbfd
commit
c66394d049
|
@ -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()
|
Loading…
Reference in New Issue