I am trying to have two identically sized frames inside a grid, like this:
CodePudding user response:
You can use frames to change placement manager like grid to place or pack or vice versa. Like you can fix sizes with place and put them inside whatever you want.
import tkinter as tk
def value_change(choice):
global user_choice
user_choice=choice
return(user_choice)
user_choice=4
hlavni=tk.Tk()
hlavni.geometry("600x100")#to have enough space to prevent collision.
mainFrame = tk.Frame(hlavni,relief="ridge",borderwidth=4)
#means that. start at parents x and y beginning. Have height of parents