At first, excuse me for my english. Will try to explain as good as I can :)
Right now im starting of with TkInter. Seems to work quite logical, but it seems I do not get what my problem is. I want to have a small framework of 2 columns, but the 'headercolumn' has to columnspan on the two below it. The framework is right.
Now I do want to add a couple buttons in the menuFrame. Some kinda way, the configBtn is in the right place, but the connectBtn has been sticked to NW, in the headerFrame.
If I'm looking into my code, i am telling it to be in MenuFrame.
Picture of the problem here! OLD!
Why is this exactly happening, and maybe the most important one, how do I fix this? :)
Below the GUI Code I wrote!
Thanks in advance!
UPDATE (21-7 - 15:28) Cause of the reactions i've changed some stuff.
The problem I have now, is that the buttons are getting stacked on eachother.
import tkinter as tk
gui = tk.Tk()
gui.title("*** - Main Menu")
gui.resizable(0, 0)
gui.grid_rowconfigure(1, weight=1)
gui.grid_columnconfigure(1, weight=1)
canvas = tk.Canvas(gui, width=650, height=650)
canvas.grid(columnspan=2, rowspan=2)
# Declare frames
tk.Frame(gui, padx=1, pady=1, borderwidth=0, relief='sunken').grid(row=0, column=0, sticky="nswe", columnspan=2)
tk.Frame(gui, padx=1, pady=1, borderwidth=2, relief='sunken').grid(row=1, column=0, sticky="nswe")
tk.Frame(gui, padx=1, pady=1, borderwidth=2, relief='sunken').grid(row=1, column=1, sticky="nswe")
# Declare images
m_logo = tk.PhotoImage(file="img/logo_1.png",)
i_logo = tk.PhotoImage(file="img/logo_1.png",)
tk.Label(gui, image=i_logo).grid(row=0, column=0, padx=5, pady=5, sticky="W")
tk.Label(gui, image=m_logo).grid(row=0, column=1, padx=5, pady=5, sticky="E")
# Declare buttons
connectBtn = tk.Button(gui, text="Connect", state=tk.ACTIVE, width=15, height=1, command="function", padx=5, pady=5).grid(column=0, row=1, sticky="NEW")
configBtn = tk.Button(gui, text="Config", state=tk.ACTIVE, width=15, height=1, command="function", padx=5, pady=5).grid(column=0, row=1, sticky="NEW")
gui.mainloop()