Buttons on the 2nd tab are way too spaced apart for some reason
root = tk.Tk()
root.iconbitmap('C:/users/eac/Pictures/multitool.ico')
root.title("Multi Tool")
root.geometry("500x400")
my_notebook = ttk.Notebook(root)
my_notebook.pack(expand=1, fill='both')
my_tab1 = ttk.Frame(my_notebook)
my_notebook.add(my_tab1, text="Welcome")
my_tab2 = ttk.Frame(my_notebook)
my_notebook.add(my_tab2, text="Tools")
Label(my_tab2, text="Hey there this is the Tools Tab, have fun!", font= ('Helvetica 18 bold underline')).grid(row=0, column=0)
Frame(my_tab2, width=250, height=250).grid()
Button(my_tab2, text="Open Task Manager", command=taskmgr).grid(row=1, column=0)
Button(my_tab2, text="Open Control Panel", command=ctrlpanel).grid(row=2, column=0)
root.mainloop()
Ive tried to use rowconfigure to set the size but it didnt do anything ive tried using .pack instead of a grid then program just didnt even run then now ive tried making a frame and putting it into the frame and no luck
New contributor
thebigdawgstepper is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.