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
toTkEasyGUI
.- 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 orIDLE
and execute the following command.
- If you have used a previous version, you will see
# 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
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
Built Distribution
Hashes for TkEasyGUI-0.2.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3db525a402cdc0f0c1e7c0555d05b35870e4ba2cf90b3738d84e3c08454f189 |
|
MD5 | 97515821ba446f5c34be555b1caf13b5 |
|
BLAKE2b-256 | 235464fd07da1b71022a0e81de38db7e76ad530f911b7bae338b5985110d64e4 |