Primera ventana: Tk()

Cada aplicación de Tkinter comienza creando Tk. Esa es la ventana raíz. Sin él, no tienes dónde poner los botones. Normalmente sólo hay un Tk por aplicación. Para una segunda ventana (por ejemplo, un cuadro de diálogo), utilice Toplevel.

Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.