SwiftGUI
A python-package to easily create user-interfaces (GUIs).
While most packages focus either on small, or big applications, SwiftGUI does both.
Compatible with Python 3.10 and above
Has some minor optimizations when running in Python 3.12+.
Getting started / documentation
The documentation now has its own repository.
Completely vibe-coding free
No AI was used in writing this code.
The only way I used it was to research really specific topics with tkinter.
I did not use it to write, check, correct, or refractor code.
Even the documentation was written completely AI-free. Takes me around 2 hours per document, but that's a good price for keeping this library slop-free.
35 different elements, 9 different canvas-elements
(Version 0.11.0)
import SwiftGUI as sg
Call sg.Examples.preview_all_elements() for an overview of all the elements.
Does your GUI look bad?
import SwiftGUI as sg
Just call sg.Themes.FourColors.Emerald() before creating the layout.
This applies the Emerald-theme, my personal favorite.
See which themes are available by calling sg.Examples.preview_all_themes().
Alpha-phase!
I am already using SwiftGUI for smaller projects and personally, like it a lot so far.
However, until version 1.0.0, the package is not guaranteed to be fully downward-compatible. Names and functions/methods might change, which could mess up your code.
For version 1.0.0, I'll sort and standardize names, so they are easier to remember.
Don't worry too much though, it's pretty much ready for beta-phase. Upcoming changes to existing code will probably be minor.
Installation
Install using pip:
pip install SwiftGUI
Update for the newest features and elements:
pip install SwiftGUI -U
NOT a clone of PySimpleGUI
SwiftGUI is it's own package with its own functionality.
I really liked PySimpleGUI (until they went "premium"), but once you work a lot with it, you'll notice the downsides of it more and more.
SwiftGUI can be used almost exactly like PySimpleGUI, but has a lot of additional features.
Also, SwiftGUI's naming is different sometimes.
E.g.: enable_event is called default_event. Makes more sense in my opinion.
There will be a lot of learning-material, including
- Written tutorials (see "getting started" below)
- Video tutorials (Planned for version 1.0.0)
- Application notes, which are short descriptions of actual applications
- Examples, which show an actual application of SwiftGUI
- The GitHub forum (discussions) for questions
Why SwiftGUI instead of PySimpleGUI?
First, note that SwiftGUI can be used almost exactly like PySimpleGUI.
You won't have to learn everything starting from 0.
I have a lot of experience with PySimpleGUI, used it for years.
It is very useful for smaller applications.
Unfortunately, at a certain level of complexity, you'll hit a wall.
All those simple features of PySimpleGUI are suddenly big disadvantages.
(There are concrete examples in the readme of the documentation.)
While developing SwiftGUI, I already used it all the time for things previously implemented in PySimpleGUI. Let me tell you, it's sooooo much more pleasant than PySimpleGUI, even when it was far away from being done.
Metadata
Release files for SwiftGUI 0.11.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swiftgui-0.11.3.tar.gz | 133.4 kB | Without provenance | Details for swiftgui-0.11.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swiftgui-0.11.3-py3-none-any.whl | Python 3 | none | any | Details for swiftgui-0.11.3-py3-none-any.whl |
Total release size: 311.7 kB
Release files / swiftgui-0.11.3.tar.gz
| Download URL | swiftgui-0.11.3.tar.gz |
|---|---|
| Size | 133.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
333ab4776e2ac055aac21a812e4e8557d626b011ffed774951ae31de45c2289c
|
|
BLAKE2b-256 checksum How to use checksums |
3420ddd17b3c17ba26f4d732f3f52ed80a442d43d5853255f14dcd55671af993
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.13.0 Windows/10
|
Release files / swiftgui-0.11.3-py3-none-any.whl
| Download URL | swiftgui-0.11.3-py3-none-any.whl |
|---|---|
| Size | 178.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d54f65fa90319f6b798005ceb4c4302ab62904585f1134e4118833f116fdd5c1
|
|
BLAKE2b-256 checksum How to use checksums |
e64c5b5c024610b72d9b196562a82cbafcef14261b97bbad38fc56eb8611d104
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.13.0 Windows/10
|
Security for SwiftGUI 0.11.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.