#๐ tkinter button s
8 messages ยท Page 1 of 1 (latest)
@quick pewter
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
fix what?
import tkinter
from tkinter import *
window = tkinter.Tk()
window.title("Photo vs Video")
window.geometry("500x500")
title_label = Label(window,font=("arial", 40, "bold") ,text="Photo vs Video")
title_label.grid(row=0,column=1,padx=55)
file_path_entry = Entry(window,font=("arial", 20, "bold"),justify=CENTER)
file_path_entry.grid(row=1,column=1)
button1 = Button(window,font=("arial", 20, "bold"),text="test")
button1.grid(row=2,column=0,padx=10,pady=10)
button2 = Button(window,font=("arial", 20, "bold"),text="test2")
button2.grid(row=2,column=1,padx=10,pady=10)
button3 = Button(window,font=("arial", 20, "bold"),text="test3")
button3.grid(row=2,column=2,padx=10,pady=10)
button4 = Button(window,font=("arial", 20, "bold"),text="test4")
button4.grid(row=2,column=3,pady=10)
window.mainloop()
heres the current code
i want the programs layout to look like this
but for some reason the buttons keep being far apart
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.
๐ tkinter button s