Skip to main content

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


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.3.1.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

GraphiteInter-0.3.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file GraphiteInter-0.3.1.tar.gz.

File metadata

  • Download URL: GraphiteInter-0.3.1.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for GraphiteInter-0.3.1.tar.gz
Algorithm Hash digest
SHA256 64e456009b5c84c2cea46e9088e2f226a1d7a1361fa929ba1192acbdec1e54c7
MD5 311e6eb2761d19ce7e4dcf7e27a0858a
BLAKE2b-256 2077e11e542c9f0689151eb4b920c212e775811fb7bd96c7ffa18c77588eb036

See more details on using hashes here.

File details

Details for the file GraphiteInter-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: GraphiteInter-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for GraphiteInter-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ae838b8413ae58a2913e0201f78afadfa5508d33a525f3559cf50455d322485
MD5 c239360f32ad0df767e1b26ea1b221c9
BLAKE2b-256 c8939b0cb5cd0cf35fc6107f4c00a4cf34c4fd4de14aec1b00264198b2cb0acf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page