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

Documentation.

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.

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.

Yes, this does slow down development quite a bit, but I trust myself to be more reliable than an AI agent.

38 different elements, 9 different canvas-elements

(Version 0.12.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().

Final minor version before Beta starts!

You might have noticed that updates for SwiftGUI are rarer than they used to be. That's actually a good sign, it means I find less things to add/correct.

There will not be version 0.13.0, but 1.0.0 instead.

I do have a couple of major tasks on my list before rolling out 1.0 though. Fixing the treeview for example.

Installation

Install using pip:

pip install SwiftGUI

Regularely update SwiftGUI for the newest features and bugfixes:

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 its downsides more and more.

The basics of SwiftGUI are almost the same as PySimpleGUI. So if you know PySimpleGUI, you already know many concepts of SwiftGUI.

There is already a collection of helpful learning material, including:

  • Written tutorials (see "getting started" above)
  • Application notes, which summarize different tutorials regarding specific applications
  • Examples, which show an actual application of SwiftGUI
  • The GitHub forum (discussions) for questions

Video tutorials are planned for version 1.0.0.

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.

In the earlier versions of SwiftGUI, it was ment to "fix" annoying things in PySimpleGUI. For example:

  • You are forced to use the event-loop for every tiny functionality
  • You can pretty much forget about editing elements, since they are implemented so convoluded
  • Some elements throw events wrong, including sg.Table and sg.Input

Nowadays, SwiftGUI's functionality goes far beyond what PySimpleGUI has to offer.

The reason is simple: SwiftGUI is built for modularity and expandability. You can easily create templates, themes, custom popups, modify elements, etc.

Also, SwiftGUI works a lot better with multiple windows. Creating a second window is almost as simple as creating a single one.

A lot more features are described/mentioned in the documentation.

Metadata

Release files for SwiftGUI 0.12.1

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.12.1
File Size Uploaded Provenance Actions
swiftgui-0.12.1.tar.gz 152.9 kB Without provenance Details for swiftgui-0.12.1.tar.gz

Built distribution (wheel)

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

Total release size: 353.4 kB

Release files / swiftgui-0.12.1.tar.gz

Download URL swiftgui-0.12.1.tar.gz
Size 152.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8c67160cfee1dbf06c165f56ee23d6f06be64e95df132ccb898a9d1d5d3995b6
BLAKE2b-256 checksum
How to use checksums
ecd5a2974182f8e828577a679f9be8e1f4687aabd19f28cf1587674a37986120
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.12.1-py3-none-any.whl

Download URL swiftgui-0.12.1-py3-none-any.whl
Size 200.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62f523319177aea6b1cb7a3314e080e4eb9a9482752f0b197d2e84ccb7008f0f
BLAKE2b-256 checksum
How to use checksums
119012d671c46f210645f1bd2f51fa2c7196dd806a77c1f5211d3a03742ae0ff
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.12.1

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