source:
python/trunk/Demo/tkinter/guido/imageview.py
Last change on this file was 2, checked in by , 15 years ago | |
---|---|
|
|
File size: 205 bytes |
Line | |
---|---|
1 | from Tkinter import * |
2 | import sys |
3 | |
4 | def main(): |
5 | filename = sys.argv[1] |
6 | root = Tk() |
7 | img = PhotoImage(file=filename) |
8 | label = Label(root, image=img) |
9 | label.pack() |
10 | root.mainloop() |
11 | |
12 | main() |
Note:
See TracBrowser
for help on using the repository browser.