Skip to main content

Improved tkinter-style gui system.

Project description

NebulaTk

NebulaTk is an early-stage, Tkinter-style GUI toolkit with a custom widget/rendering pipeline. Widgets are composed into Pillow images and displayed through an OpenGL window backend.

Questions, bug reports, and feature requests: ctrl.alt.op@gmail.com or through this GitHub repo

Current status

  • Project is in active early development.
  • The current Window() path in this branch supports render_mode="image_gl" only, but might be expanded for vulkan later.
  • Rendering currently depends on a GLFW + PyOpenGL backend.

Installation

From the repository root:

pip install -e .

For development and tests:

pip install -r requirements.txt

Quick start

import nebulatk as ntk

window = ntk.Window(title="NebulaTk")
ntk.Button(window, text="Hello NebulaTk").place(20, 20)

You can also run included examples:

python examples/example.py
python examples/relativeplace.py
python examples/word_collage.py

Note: example scripts may reference local assets under examples/Images/. If those assets are missing in your checkout, update image paths or provide your own files.

Running tests

From the project root:

pytest

Public API highlights

Top-level imports exposed by nebulatk include:

  • Window
  • FileDialog
  • Widgets: Button, Label, Entry, Frame, Slider, Container
  • Utility modules: colors_manager, fonts_manager, image_manager, bounds_manager, standard_methods, animation_controller, rendering, file_manager

Many widget methods are chainable, for example:

ntk.Button(window, text="Chainable").place(10, 10).hide().show()

Project layout

  • nebulatk/ - main package source
  • nebulatk/widgets/ - widget classes and base components
  • examples/ - runnable usage demos
  • tests/ - pytest test suite

Notes

  • This project is not a drop-in implementation of Tk's internal event/render loop.
  • The window/rendering architecture uses both threading and multiprocessing internally.

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

nebulatk-0.3.2.8.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

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

nebulatk-0.3.2.8-py3-none-any.whl (76.5 kB view details)

Uploaded Python 3

File details

Details for the file nebulatk-0.3.2.8.tar.gz.

File metadata

  • Download URL: nebulatk-0.3.2.8.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for nebulatk-0.3.2.8.tar.gz
Algorithm Hash digest
SHA256 444ac21c5043d70debdfa89b155f1c208273126a9cdc0e76d6d7aa59c71012ea
MD5 91e9a68ca186c3d4a4cc6cba9f316958
BLAKE2b-256 f0859559bb6eee889e80578f42cd6946f64e455831053280d4f6b45afa26e801

See more details on using hashes here.

File details

Details for the file nebulatk-0.3.2.8-py3-none-any.whl.

File metadata

  • Download URL: nebulatk-0.3.2.8-py3-none-any.whl
  • Upload date:
  • Size: 76.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for nebulatk-0.3.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1c6219f594312ec61f44d9a1cd7ea3b77346fe976d6c0c3c3ee2ef035a02c0e8
MD5 8228047d39fbea4d4188554b31d9735c
BLAKE2b-256 1e08f913e743b05c0171dfc175dd4b238d1368a1af04c297744c66ef9d37a6ce

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