Skip to main content

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

Start your journey here

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 AI 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 everything 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 currently available 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, downward-compatability is not a priority. Names and functions/methods might change, which could potentially mess up your code.

For version 1.0.0, I'll sort and standardize names, so they are easier to remember. After version 1.0.0, there will be little to no changes that might break existing code. If changes can't be avoided, there will be a separate changelog which shows everything you need to adjust so you may update without issues.

Don't worry too much though, the package is pretty much ready for beta-phase.

Installation

Install using pip:

pip install SwiftGUI

Update SwiftGUI 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 very simmilar to PySimpleGUI, but has a lot of additional features.
So if you know PySimpleGUI, you won't need to start from scratch.

Also, 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?

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 that make PySimpleGUI great, are suddenly very annoying.

What annoys me the most is that PySimpleGUI forces you to use only the event-loop for functionality. That means, every tiny tiniest functionality needs a key and code in the event-loop.

SwiftGUI on the other hand offers many different ways to connect layout with functionality. That makes it easy to "copy and paste" parts of the layout.

SwiftGUI also supports multiple windows much better, with every window having its own event-loop.

On top of that, SwiftGUI enables expandability everywhere. You can easily create your own elements, themes, popups and templates.

Metadata

Release files for SwiftGUI 0.11.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SwiftGUI 0.11.20
File Size Uploaded Provenance Actions
swiftgui-0.11.20.tar.gz 150.9 kB Without provenance Details for swiftgui-0.11.20.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for SwiftGUI 0.11.20
File Interpreter ABI Platform Actions
swiftgui-0.11.20-py3-none-any.whl Python 3 none any Details for swiftgui-0.11.20-py3-none-any.whl

Total release size: 348.0 kB

Release files / swiftgui-0.11.20.tar.gz

Download URL swiftgui-0.11.20.tar.gz
Size 150.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d8e41c8aecc2e74e3bbd73bc7462abc6b8c7788afe2fadf7ae23ce83db902e7b
BLAKE2b-256 checksum
How to use checksums
6debf8f3fc802f9ffffd473f39489f45bf70b6d212954ee141888d047c6662ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.14.5 Windows/10

Release files / swiftgui-0.11.20-py3-none-any.whl

Download URL swiftgui-0.11.20-py3-none-any.whl
Size 197.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbffb3b9f34fbb92c0226ee229507eb7d8877bbdc2fdb27165759fe7034291d0
BLAKE2b-256 checksum
How to use checksums
6223da00fed2310285759f952ab5ae561894e2cd4381d7ca18c2b5d56085ec6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.14.5 Windows/10

Security for SwiftGUI 0.11.20

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.

Release history Release notifications | RSS feed

This release

0.11.20 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page