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.1.tar.gz (2.5 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.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: betterguispark-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 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.1.tar.gz
Algorithm Hash digest
SHA256 81995dbd483f627367887b2c4e1e5e69f7b22a17e908103604504d800f2d8026
MD5 9b6571519949a05e2383c7f861dfc2af
BLAKE2b-256 0970f58e37fa9f6ddb67ff51657f4eacb127f7b54b8b8384b36d26f3bce00f22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: betterguispark-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 69f58088feb1156caff287d15e222939b0e919c0e77331938f333e6502e4dcdb
MD5 c614dce53de9094ca3d82ddec2e5d4bd
BLAKE2b-256 3335b1cafca39edb0dfc70eb482ef20d3a8496050312450b157ce8fee9a274ba

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