HOME/Articles/

tkinter example 03-size (snippet)

Article Outline

Python tkinter (gui) example '03-size'

03-size

Python tkinter example: 03-size

from tkinter import *

my_window = Tk() # crea un objeto por defecto: fondo gris, maximizar, minimizar, etc.

# CODE GOES HERE
my_window.title("Demo1")

# set size of the window
my_window.configure(width=400, height=200, background='#94d42b')

#bucle principal
my_window.mainloop()