1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
from Tkinter import *
frame1 = Tk()
frame1.geometry("400x600+10+10")
Header = Frame(frame1, width=400, height=100).pack(side='top')
Cadre_1 = Frame(frame1, width=500, height=100)
Cadre_1.pack(side='top')
fileA = Label(Cadre_1, text="File A").grid(row=0,column=0)
entA = Entry(Cadre_1, width=40).grid(row=0,column=1, pady=10)
open_fileA = Button(Cadre_1, text='SELECT', command = frame1.destroy).grid(row=0, column=2)
fileB = Label(Cadre_1, text="File B").grid(row=1,column=0)
entB = Entry(Cadre_1, width=40).grid(row=1,column=1, pady=10)
open_fileB = Button(Cadre_1, text='SELECT', command = frame1.destroy).grid(row=1, column=2)
footer_Button = Frame(frame1, width=500, height=50, bg="red")
footer_Button.pack(side='bottom')
Exit_Button = Button(footer_Button, text='-EXIT-', command = frame1.destroy)
Exit_Button.pack(side='left')
frame1.mainloop() |
Partager