Jump to content

Recommended Posts

Posted (edited)
from tkinter import *
tela = TK()
tela.resizable(False , False)
tela.title('Bot')
menssagem =label(Text= 'Giros double brazer',bg='black',fg='white',heigt=2,front=("", 12), width=96) 
menssagem.Grid(row=0,column=0)

o que esta  erado  aqui

Edited by thoga31
GeSHi
Posted

Eu não sou a pessoa mais indicada para falar de Python sou mero curioso, mas do pouco que vi deixo-te os seguintes pontos.

A tela é um novo objeto Tk() e não TK()

A label deve ser ttk.Label e o grid() tem que ser definido após teres uma ttk.Frame(...)


Para uma janela simples, já começa com várias falhas.

Deves pelo menos consultar a documentação do tkinter (https://docs.python.org/3/library/tkinter.html#a-hello-world-program)

Mas antes aconselho a conhecer e familiarizares com Python, saltar logo para criação de interfaces visuais pode tornar-se frustrante.

 

Feito é melhor que perfeito

  • 1 month later...
Posted

Faltam algumas coisas no código como por exemplo um loop e também tens alguns erros de escrita nele

Código:

from tkinter import *



tela = Tk()

tela.resizable(False , False)

tela.title('Bot')

menssagem=Label(text='Giros double brazer',bg='black',fg='white',height=2,font=("", 12), width=96 )

menssagem.grid(row=0,column=0)

tela.mainloop()

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.