1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
from Tkinter import *
frame1 = Tk()
frame1.geometry("400x600+10+10")
fileA = Label(frame1, text="File A").grid(row=0,column=0)
entA = Entry(frame1, width=40).grid(row=0,column=1, pady=10)
open_fileA = Button(frame1, text='SELECT', command = frame1.destroy).grid(row=0, column=2)
fileB = Label(frame1, text="File B").grid(row=1,column=0)
entB = Entry(frame1, width=40).grid(row=1,column=1, pady=10)
open_fileB = Button(frame1, text='SELECT', command = frame1.destroy).grid(row=1, column=2)
open_fileB = Button(frame1, text='-EXIT-', command = frame1.destroy).pack(side='bottom')
frame1.mainloop() |
Partager