“botão central em tknter” Respostas de código

botão central em tknter

import tkinter as tk
root=tk.Tk()
root.geometry("300x275")

B=tk.Button(root,text="button",command= lambda:fun() ,width=5,font=("Arial",14))
B.grid(columnspan=5,row=5,column=2)
B.place(relx=0.5, rely=0.5, anchor='center')

root.mainloop()
Xanthous Xenomorph

Botões centrais tknter

button.place(relx=0.5, rely=0.5, anchor=CENTER)
Real Raccoon

Respostas semelhantes a “botão central em tknter”

Perguntas semelhantes a “botão central em tknter”

Mais respostas relacionadas para “botão central em tknter” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código