![]() Because I do not see the reason why to start placing the widgets at row=1 and column=1, in my solution below, I start placing at the 0 index. The row and column numbers of the grid() layout manager start from 0, not from 1 (there is nothing wrong to start placing the elements wherever you want though, I just mention this because your code gives me the impression you think the cells start at 1, not at 0). ![]() id(row=1, column=1, columnspan=3, sticky=E+W+N+S) Txtbox = scrolledtext.ScrolledText(group1, width=40, height=10) Group1 = LabelFrame(master_window, text="Text Box", padx=5, pady=5) from tkinter import *ītn_Image = Button(master_window, text='Image')ītn_id(row=1, column=1, padx=(10), pady=10, sticky=E + W)ītn_File = Button(master_window, text='File')ītn_id(row=1, column=2, padx=(10), pady=10, sticky=E + W)ītn_Folder = Button(master_window, text='Folder')ītn_id(row=1, column=3, padx=(10), pady=10, sticky=E + W) I have read that columnconfigure and rowconfigure can be used but not sure how to implement it. When I drag the window to expand it, I want the frame and the text box it contains to expand with the master window. ![]() In the code I have three buttons across the top that should to stay exactly where they are. I am trying to work out how to control resizing of the window containing a frame.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |