Skip to main content

TkEasyGUI is simple GUI Library for Python3 with Tkinter

Project description

TkEasyGUI

TkEasyGUI is a Python library that allows for the easy and simple creation of GUI applications. In the event model, it is compatible with the well-known GUI library PySimpleGUI.

Python's standard UI library Tkinter, is often considered to have a high barrier to entry and to be difficult to use. By using this library, you can create GUI applications easily and intuitively.

This project adopts the lenient MIT license. This license will not change in the future. Let's enjoy creating GUI programs.

Platform

  • Windows / macOS / Linux (tkinter required)

Install

Install from pypi

python -m pip install TkEasyGUI

Install from GitHub Repository

python -m pip install git+https://github.com/kujirahand/tkeasygui-python

memo

  • From version 0.2.24, the package name has also been changed from tkeasygui to TkEasyGUI.
    • If you have used a previous version, you will see ModuleNotFoundError: No module named 'TKEasyGUI'.
    • Please run the command below to completely remove the old tkeasygui package.
    • Start the python command or IDLE and execute the following command.
# remove old package
import os, shutil, PIL
packages = os.path.dirname(PIL.__path__[0])
old_package = os.path.join(packages, "tkeasygui")
print(f"Remove: {old_package}")
shutil.rmtree(old_package)

How to use

To create a simple window with only labels and buttons, you would write as follows:

import TkEasyGUI as eg

# Create window
layout = [
    [eg.Text("Hello, World!")],
    [eg.Button("OK")]
]
window = eg.Window("Hello", layout=layout)

# Event loop
while window.is_alive():
    # get event
    event, values = window.read()
    # check event
    if event == "OK":
        eg.popup("Pushed OK Button")
        break
window.close()

Samples

We have prepared a selection of samples to demonstrate simple usage. Please check them out.

Documents

Below is a detailed list of classes and methods.

About the relationship with PySimpleGUI

Fundamentally, it is compatible with PySimpleGUI. Programs can be written using the same event model. It should be noted that while it was developed with reference to PySimpleGUI, it has been reimplemented from scratch. Many unique features have been expanded. The basic Elements have been given the same names. However, the names of some properties are different.

We are not considering full compatibility with PySimpleGUI.

Link

Project details


Download files

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

Source Distribution

TkEasyGUI-0.2.31.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

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

TkEasyGUI-0.2.31-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file TkEasyGUI-0.2.31.tar.gz.

File metadata

  • Download URL: TkEasyGUI-0.2.31.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for TkEasyGUI-0.2.31.tar.gz
Algorithm Hash digest
SHA256 83bd8706e9b638cd7160a437bb08c5555145ee9d48c7b1429aa0c1061a3414f0
MD5 07294ea8f5d52e7bd0a62a7ffe8d1801
BLAKE2b-256 56129ed23c7e79123acec2e1ead7a6392ba930f38fe7df4b8227ec882cc32439

See more details on using hashes here.

File details

Details for the file TkEasyGUI-0.2.31-py3-none-any.whl.

File metadata

  • Download URL: TkEasyGUI-0.2.31-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for TkEasyGUI-0.2.31-py3-none-any.whl
Algorithm Hash digest
SHA256 7ca8fa8f2db74390a2e7d019dc5e130192b76b4d527f77b366488016a02f58bd
MD5 4c49b8b9fb97920a18ed8abae58a787c
BLAKE2b-256 e53fbb2203a55fc3d826dd1fee1f273b4c5ccc4df2594f2aea0466ea3e391d4a

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