Saltar al contenido

colores de fondo disponibles en el ejemplo de código tkinter

Al fin después de tanto batallar hemos dado con el arreglo de este enigma que muchos los usuarios de este sitio web han presentado. Si quieres compartir algo no dejes de aportar tu comentario.

Ejemplo 1: cambiar el color de fondo de tkinter

root.configure(background='black')

Ejemplo 2: cómo agregar un color de fondo en tkinter

#Import:from tkinter import*#Create Window:
new_window = Tk()
new_window.title("Hello World")
new_window.geometry("300x250")#Adding the background color:
new_window.config(bg ="red")#new_window tells us that we are setting up something for the new window#.config() means that we want to configure something on the screen#bg tells that the background needs to be changed#"red" tells us what should the background color be ; it can also be a hex code

new_window.mainloop()

valoraciones y reseñas

Puedes añadir valor a nuestro contenido colaborando tu veteranía en los informes.

¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)


Tags :

Utiliza Nuestro Buscador

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *