A simple GUI framework with tkinter for creating interactive interfaces.
Project description
GraphiteInter
GraphiteInter é uma estrutura simples para a criação de interfaces gráficas interativas usando o tkinter em Python.
Como Usar
from Graphite import GraphiteInter
# Função para exibir a contagem regressiva e a mensagem final
def start_countdown():
GraphiteInter._root.after(0,GraphiteInter.removebutton("countdown"))
GraphiteInter._root.after(1000,GraphiteInter.removebutton("rstrt"))
# Insere a contagem de 10 a 0
for i in range(60, -1, -1): # De 10 até 0
GraphiteInter._root.after((60 - i) * 1000, lambda i=i: GraphiteInter.inserttext(f"counter{i}", str(i), 50, (400, 250), "red"))
GraphiteInter._root.after((60 - i) * 1000 + 500, lambda i=i: GraphiteInter.removeText(f"counter{i}"))
# Insere a mensagem após a contagem regressiva
GraphiteInter._root.after(61 * 1000, lambda: GraphiteInter.inserttext("EndTrial", "Sua licença expirou, reabra o programa", 30, (50, 250), "red"))
GraphiteInter._root.after(61*1000,lambda:GraphiteInter.create_button("Reiniciar","rstrt",restart))
GraphiteInter._root.after(61*1000,lambda:GraphiteInter.buttonposition("rstrt",0,0))
# Cria a janela
def restart():
GraphiteInter._root.after(61*1000,lambda:GraphiteInter.removebutton("rstrt"))
GraphiteInter._root.after(0,lambda:GraphiteInter.removeText("EndTrial"))
GraphiteInter.create_button("Iniciar Contagem","countdown",start_countdown)
GraphiteInter.buttonposition("countdown",0,0)
GraphiteInter.removeBgImage()
#criando a janela
GraphiteInter.create_window("teste")
# Define o fundo da janela e a imagem de fundo
GraphiteInter.setbackground("blue")
GraphiteInter.setbgimage("C:\\Users\\leona\\Desktop\\imagem.jpg")
GraphiteInter.create_button("Iniciar Contagem","countdown",start_countdown)
GraphiteInter.buttonposition("countdown",0,0)
# Exibe a janela
GraphiteInter.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
GraphiteInter-0.1.6.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file GraphiteInter-0.1.6.tar.gz.
File metadata
- Download URL: GraphiteInter-0.1.6.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e1addbcffb4b85281ab6e6978e407e609eed473c9b8b20a3422ff0685397bde
|
|
| MD5 |
29225625b0224a95a015ab80122adcc1
|
|
| BLAKE2b-256 |
83b2be83f751680df40f98744569aeb69efd8cc9b3f364da13597d5e5f5f2184
|
File details
Details for the file GraphiteInter-0.1.6-py3-none-any.whl.
File metadata
- Download URL: GraphiteInter-0.1.6-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f60431ebc96058b5c35af8a7d6f1ce64b9b1fd6bf7cb184004d5ae24c22b2fa
|
|
| MD5 |
d73a94e5b32b2d582424e470bd4266b7
|
|
| BLAKE2b-256 |
0543eca458a79ed56e9895e43d72c9b1fa186b6e0cbdf8d59c653cd9a204f298
|