from tkinter import root Tk root minsize 300 300 filenametext Entry ro

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
from tkinter import *
root = Tk()
#root.minsize(300, 300)
filenametext = Entry(root, bg='#f00')
filenametext.place(x=0, y=0)
text = StringVar()
filenametext['textvariable'] = text
button = Button(root, text='Открыть')
button.place(x=100, y=0)
button2 = Button(root, text='Открыть2')
button2.place(x=100,y=100)
root.mainloop()