Skip to main content

An easy-to-use package for quickly creating smaller and bigger GUIs

Project description

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.

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

32 different elements, 9 different canvas-elements

(Version 0.10.0)

import SwiftGUI as sg

Call sg.Examples.preview_all_elements() for an overview of 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, 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.

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.24.tar.gz (123.9 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.24-py3-none-any.whl (166.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swiftgui-0.10.24.tar.gz
  • Upload date:
  • Size: 123.9 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.24.tar.gz
Algorithm Hash digest
SHA256 1ec6778c4321e321e3e23a31f1dd76b3e5d411157f6a9bdcbce5a28b37d9d223
MD5 f847bc09b9c56d32e062df7fc0bdafb4
BLAKE2b-256 196a14e86acf5f22491c9eaf607a3bed16d95accfba0c98a0276e33143688232

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swiftgui-0.10.24-py3-none-any.whl
  • Upload date:
  • Size: 166.5 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.24-py3-none-any.whl
Algorithm Hash digest
SHA256 cc4cfa369a18e2be1205bb72429a84e29b283048ee36dac50c5aeb95b4a2c699
MD5 460afb17c2b2a11ff80db69d04eb406e
BLAKE2b-256 f09cde8c5670e9f04a1bd99e5ac37fb8b2da545d52ac30c90a2ab722c30b3f5d

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