HOME/Articles/

tkinter example 01-intro (snippet)

Article Outline

Python tkinter (gui) example '01-intro'

01-intro

Python tkinter example: 01-intro

from tkinter import *

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

# code goes here
print(id(my_window), type(my_window))
my_window.title("Demo")

#bucle principal
my_window.mainloop()