Avatar ·

Como fazer destaque de sintaxe no tkinter

📁 pergunta

Eu suspeito que esta pergunta seja muito difícil (ou até impossível). Mas
eu gostaria de saber se é possível fazer destaque de sintaxe em um widget de texto?

Avatar ·

Corrigido

Na verdade, o arquivo __init__.py não foi projetado para armazenar a implementação de funções comuns ao pacote. Recomenda-se colocá-las em outros arquivos.

Veja o que é dito em:

<...> In the simplest case, __init__.py can just be an empty file, but it can also execute initialization code for the package or set the __all__ variable, described later.

Citação de:

<...> special behavior for the __init__.py file, which is used to gather all package-wide definitions.

<...>

Leaving an init.py file empty is considered normal and even a good practice, if the package’s modules and sub-packages do not need

Faça login para deixar uma resposta

Blogs