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

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.0
File Size Uploaded Provenance Actions
swiftgui-0.12.0.tar.gz 152.4 kB Without provenance Details for swiftgui-0.12.0.tar.gz

Built distribution (wheel)

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

Total release size: 353.5 kB

Release files / swiftgui-0.12.0.tar.gz

Download URL swiftgui-0.12.0.tar.gz
Size 152.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f9d8e034b3586e1285a9a023a7f215fb0dafab2bc2933e76792d5aec52bd57ae
BLAKE2b-256 checksum
How to use checksums
354eda6bcc85516fdb168e327f062972117da5ff4d480142a3cb17462250bb99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.10.11 Windows/10

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

Download URL swiftgui-0.12.0-py3-none-any.whl
Size 201.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5528228f6b90ca268f9b1275629d0ece20065ae837c74b2720a4cc11616a0f15
BLAKE2b-256 checksum
How to use checksums
616c1cddbeae4aad3639cc18adf6cebdb86d4e2f240c980f06b0050d53934d31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.10.11 Windows/10

Security for SwiftGUI 0.12.0

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