Skip to main content

A better and more powerful PyQt6 GUI framework

Project description

BetterGuiSpark ⚡

BetterGuiSpark is a simple and powerful GUI framework built on top of PyQt6.

Features

  • Easy widget creation
  • Event handling (keyboard + mouse)
  • Built-in themes
  • File handling
  • Validation system

Example

from BetterGuiSpark import GuiSpark

gui = GuiSpark(
    title="Teste set_font_size",
    width=500,
    height=300
)

gui.set_theme("dark")

# =====================
# Widgets
# =====================

texto = gui.add_widget(
    "label",
    x=40,
    y=40,
    width=400,
    height=40,
    text="BetterGuiSpark - Testando Font Size"
)

# Define tamanho inicial
gui.set_font_size(texto, 16)


# =====================
# Funções
# =====================

def aumentar():
    gui.set_font_size(texto, 28)

def diminuir():
    gui.set_font_size(texto, 12)

def gigante():
    gui.set_font_size(texto, 40)


# =====================
# Botões
# =====================

botao=gui.add_widget(
    "button",
    x=40,
    y=120,
    width=120,
    height=40,
    text="12 px",
    command=diminuir
)

gui.add_widget(
    "button",
    x=180,
    y=120,
    width=120,
    height=40,
    text="28 px",
    command=aumentar
)

gui.add_widget(
    "button",
    x=320,
    y=120,
    width=120,
    height=40,
    text="40 px",
    command=gigante
)

gui.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

betterguispark-0.1.2.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

betterguispark-0.1.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file betterguispark-0.1.2.tar.gz.

File metadata

  • Download URL: betterguispark-0.1.2.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for betterguispark-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d056c70a617ef8e43ee51f783883252ca0fea32f5d094593c3f05da9b76f25ab
MD5 9b645067a349c985d42d4ffbc3e315ee
BLAKE2b-256 59ad821a58e5e3fa2dc771bb0f82b0f041803e249e19eda1517d42e46b570a57

See more details on using hashes here.

File details

Details for the file betterguispark-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: betterguispark-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for betterguispark-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6b4155a394666451b15384b5f5b2fc8d3c4ad67f246d74134eb620e77e1403c8
MD5 76a014895ba7d942667c69fbcb733370
BLAKE2b-256 ad21b6749446a02a4f4550be33694606a698eb8c92dc0f801eac0856e51eb48f

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