1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] Centralizar elemento no tkinter Python 3

Discussão em 'Python' iniciado por Stack, Setembro 27, 2021.

  1. Stack

    Stack Membro Participativo

    Estou fazendo alguns testes com o módulo em Python 3. Gostaria de saber como posso centralizar um elemento em uma janela do tkinter começando com o seguinte código:

    import tkinter as tk
    window = tk.Tk()
    window.geometry("200x600")
    label1 = tk.Label(text="Hello world!", font="Arial 10 bold")


    Neste caso, como posso centralizar a Label no label1?

    Continue reading...

Compartilhe esta Página