mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +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()
|