Skip to main content

An easy-to-use package for creating functional GUIs very quickly

Project description

SwiftGUI

A python-package to quickly create user-interfaces (GUIs).

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, not gonna lie, SwiftGUI's naming is different sometimes. 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
  • The GitHub forum (discussions) for questions, which you can already use

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.

Does your GUI look shitty?

import SwiftGUI as sg

Just call sg.Themes.FourColors.Emerald() before creating the layout.

This applies the Emerald-theme.

See which themes are available by calling sg.Examples.preview_all_themes().

30 different elements

(Version 0.9.0)

import SwiftGUI as sg

Call sg.Examples.preview_all_elements() for an overview over all the elements.

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, I already tidied up a lot. Upcoming changes to existing code will probably be minor.

Legal disclaimer

I did not copy any code from the (once) popular Python-package PySimpleGUI.

Even though some of the concepts are simmilar, everything was written by me or a contributor. Element-names like Table and Input are common and not owned by PySimpleGUI. Even if they were, they got published a long time ago under a different license.

Installation

Install using pip:

pip install SwiftGUI

Update to use the newest features and elements:

pip install SwiftGUI -U

Why SwiftGUI instead of PySimpleGUI?

First know that SwiftGUI can be used almost exactly like PySimpleGUI.
You won't have to learn everything starting from 0.
However, the naming-convention is different, but not difficult.

I have a lot of experience with PySimpleGUI, used it for years.
It is very useful, and offers good compatability on a lot of platforms.

Unfortunately, at a certain level of complexity, you'll hit a wall. All those simple features of PySimpleGUI are suddenly very messy. I give concrete examples in the readme of the documentation.

While developing SwiftGUI, I am already using it when I'd usually use PySimpleGUI. Let me tell you, it's sooooo much more pleasant than PySimpleGUI, even if it is still in alpha-phase.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swiftgui-0.10.1.tar.gz (116.3 kB view details)

Uploaded Source

Built Distribution

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

swiftgui-0.10.1-py3-none-any.whl (157.7 kB view details)

Uploaded Python 3

File details

Details for the file swiftgui-0.10.1.tar.gz.

File metadata

  • Download URL: swiftgui-0.10.1.tar.gz
  • Upload date:
  • Size: 116.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.0 Windows/10

File hashes

Hashes for swiftgui-0.10.1.tar.gz
Algorithm Hash digest
SHA256 e05020f7a137d89cd3a42734aa9cb80bd6be21a1a2c22690956f4d1fcb925ea8
MD5 bfdcd4d5abaa27873d8b746339e2eef4
BLAKE2b-256 511b5cc1bf4a8af4d8bb6a5a5031edd2a95cc51838a9f37ef8d66d652923bf9d

See more details on using hashes here.

File details

Details for the file swiftgui-0.10.1-py3-none-any.whl.

File metadata

  • Download URL: swiftgui-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 157.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.0 Windows/10

File hashes

Hashes for swiftgui-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7d9f9b3dacbb35c5daf32bfb7df00ccd863bb0e621d505d94360a4d0aee2d44
MD5 12d125e793c79d59b80617917d48114c
BLAKE2b-256 50ca501f9ccb2fb48a443e9428c096b61d6759144abb4d89e0a1a2f511894217

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