TkEasyGUI


NameTkEasyGUI JSON
Version 0.2.67 PyPI version JSON
download
home_pageNone
SummaryTkEasyGUI is simple GUI Library for Python3 with Tkinter
upload_time2024-04-27 13:49:06
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT License Copyright (c) 2024 kujirahand Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords gui tkinter pysimplegui
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TkEasyGUI

`TkEasyGUI` is a Python library that allows for the easy and simple creation of GUI applications.

<img src="https://github.com/kujirahand/tkeasygui-python/raw/main/docs/image/logo-button.jpg" width="180" alt="TkEasyGUI Logo">

- 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.
- In the event model, it is compatible with the well-known GUI library `PySimpleGUI`.
- This project adopts the lenient MIT license. This license will not change in the future. Let's enjoy creating GUI programs.

- [πŸ‘‰ζ—₯本θͺž](https://github.com/kujirahand/tkeasygui-python/blob/main/README-ja.md) / [πŸ‘‰δΈ­ζ–‡](https://github.com/kujirahand/tkeasygui-python/blob/main/README-zh.md)


## Platform

- Windows / macOS / Linux (Tkinter required)

<img src="https://github.com/kujirahand/tkeasygui-python/raw/main/docs/image/tkeasygui-shot640.jpg" width="300" alt="TkEasyGUI">

## Install

Install package from [PyPI](https://pypi.org/project/TkEasyGUI/).

```sh
python -m pip install TkEasyGUI
```

Install package from [GitHub Repository](https://github.com/kujirahand/tkeasygui-python).

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

- (memo) Updating from older versions (less than 0.2.24) will fail. ([See the solution](https://github.com/kujirahand/tkeasygui-python/blob/main/docs/installation_trouble.md))

## How to use - popup dialogs

Using TkEasyGUI is simple. If you only want to display a dialog, it requires just two lines of code.

```py
import TkEasyGUI as eg
# Displays the message in a popup dialog.
eg.print("A joyful heart is good medicine.")
```

Ask the user for their name and display that name in the window.

```py
import TkEasyGUI as eg
name = eg.input("What is your name?")
eg.print(f"Hello, {name}.")
```

### How to use - widgets

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

```py
import TkEasyGUI as eg
# define layout
layout = [
    [eg.Text("Hello, World!")],
    [eg.Button("OK")]
]
# create a window
window = eg.Window("Hello App", layout)
# event loop
for event, values in window.event_iter():
    if event == "OK":
        eg.print("Thank you.")
        break
```

You can describe it using an event model similar to the famous GUI library, PySimpleGUI.

```py
import TkEasyGUI as eg

# define layout
layout = [[eg.Text("Hello, World!")], [eg.Button("OK")]]
# create a window
window = eg.Window("Hello App", layout)
# event loop
while True:
    event, values = window.read()
    if event in ["OK", eg.WINDOW_CLOSED]:
        eg.popup("Thank you.")
        break
# close window
window.close()
```

## Samples

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

- [samples](https://github.com/kujirahand/tkeasygui-python/tree/main/tests).

Running `tests/file_viewer.py` allows all samples to be easily launched.

## Documents

Below is a detailed list of classes and methods.

- [docs](https://github.com/kujirahand/tkeasygui-python/tree/main/docs)

## About the relationship with PySimpleGUI

- When utilizing basic features, it is compatible with PySimpleGUI. You can write programs using the same event model as PySimpleGUI.
- The names of basic GUI components are also kept the same. However, while some property names differ, many unique features have been implemented.
- This project was developed with PySimpleGUI in mind, but has been implemented entirely from scratch. There are no licensing issues.
- We are not considering full compatibility with PySimpleGUI.

### TkEasyGUI features:

- Using a `for` loop and `window.event_iter()` enables straightforward event processing.
- Custom popup dialogs, such as a color selection dialog (`eg.popup_color`), are available.
- The `Image` class supports not only PNG but also JPEG formats.
- Convenient event hooks and features for bulk event registration are provided - [docs/custom_events](docs/custom_events.md).
- Methods such as Copy, Paste, and Cut are added to text boxes (Multiline/Input).
- The system's default color scheme is utilized.

## Link

- [pypi.org > TkEasyGUI](https://pypi.org/project/tkeasygui/)
- [GitHub > TkEasyGUI](https://github.com/kujirahand/tkeasygui-python/)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "TkEasyGUI",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "kujirahand <web@kujirahand.com>",
    "keywords": "GUI, Tkinter, PySimpleGUI",
    "author": null,
    "author_email": "kujirahand <web@kujirahand.com>",
    "download_url": "https://files.pythonhosted.org/packages/66/ec/b48d12557d16c627a7627b888398eb0ab24a9d986d28dcc7a8647e06fb68/tkeasygui-0.2.67.tar.gz",
    "platform": null,
    "description": "# TkEasyGUI\n\n`TkEasyGUI` is a Python library that allows for the easy and simple creation of GUI applications.\n\n<img src=\"https://github.com/kujirahand/tkeasygui-python/raw/main/docs/image/logo-button.jpg\" width=\"180\" alt=\"TkEasyGUI Logo\">\n\n- 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.\n- In the event model, it is compatible with the well-known GUI library `PySimpleGUI`.\n- This project adopts the lenient MIT license. This license will not change in the future. Let's enjoy creating GUI programs.\n\n- [\ud83d\udc49\u65e5\u672c\u8a9e](https://github.com/kujirahand/tkeasygui-python/blob/main/README-ja.md) / [\ud83d\udc49\u4e2d\u6587](https://github.com/kujirahand/tkeasygui-python/blob/main/README-zh.md)\n\n\n## Platform\n\n- Windows / macOS / Linux (Tkinter required)\n\n<img src=\"https://github.com/kujirahand/tkeasygui-python/raw/main/docs/image/tkeasygui-shot640.jpg\" width=\"300\" alt=\"TkEasyGUI\">\n\n## Install\n\nInstall package from [PyPI](https://pypi.org/project/TkEasyGUI/).\n\n```sh\npython -m pip install TkEasyGUI\n```\n\nInstall package from [GitHub Repository](https://github.com/kujirahand/tkeasygui-python).\n\n```sh\npython -m pip install git+https://github.com/kujirahand/tkeasygui-python\n```\n\n- (memo) Updating from older versions (less than 0.2.24) will fail. ([See the solution](https://github.com/kujirahand/tkeasygui-python/blob/main/docs/installation_trouble.md))\n\n## How to use - popup dialogs\n\nUsing TkEasyGUI is simple. If you only want to display a dialog, it requires just two lines of code.\n\n```py\nimport TkEasyGUI as eg\n# Displays the message in a popup dialog.\neg.print(\"A joyful heart is good medicine.\")\n```\n\nAsk the user for their name and display that name in the window.\n\n```py\nimport TkEasyGUI as eg\nname = eg.input(\"What is your name?\")\neg.print(f\"Hello, {name}.\")\n```\n\n### How to use - widgets\n\nTo create a simple window with only labels and buttons, you would write as follows:\n\n```py\nimport TkEasyGUI as eg\n# define layout\nlayout = [\n    [eg.Text(\"Hello, World!\")],\n    [eg.Button(\"OK\")]\n]\n# create a window\nwindow = eg.Window(\"Hello App\", layout)\n# event loop\nfor event, values in window.event_iter():\n    if event == \"OK\":\n        eg.print(\"Thank you.\")\n        break\n```\n\nYou can describe it using an event model similar to the famous GUI library, PySimpleGUI.\n\n```py\nimport TkEasyGUI as eg\n\n# define layout\nlayout = [[eg.Text(\"Hello, World!\")], [eg.Button(\"OK\")]]\n# create a window\nwindow = eg.Window(\"Hello App\", layout)\n# event loop\nwhile True:\n    event, values = window.read()\n    if event in [\"OK\", eg.WINDOW_CLOSED]:\n        eg.popup(\"Thank you.\")\n        break\n# close window\nwindow.close()\n```\n\n## Samples\n\nWe have prepared a selection of samples to demonstrate simple usage. Please check them out.\n\n- [samples](https://github.com/kujirahand/tkeasygui-python/tree/main/tests).\n\nRunning `tests/file_viewer.py` allows all samples to be easily launched.\n\n## Documents\n\nBelow is a detailed list of classes and methods.\n\n- [docs](https://github.com/kujirahand/tkeasygui-python/tree/main/docs)\n\n## About the relationship with PySimpleGUI\n\n- When utilizing basic features, it is compatible with PySimpleGUI. You can write programs using the same event model as PySimpleGUI.\n- The names of basic GUI components are also kept the same. However, while some property names differ, many unique features have been implemented.\n- This project was developed with PySimpleGUI in mind, but has been implemented entirely from scratch. There are no licensing issues.\n- We are not considering full compatibility with PySimpleGUI.\n\n### TkEasyGUI features:\n\n- Using a `for` loop and `window.event_iter()` enables straightforward event processing.\n- Custom popup dialogs, such as a color selection dialog (`eg.popup_color`), are available.\n- The `Image` class supports not only PNG but also JPEG formats.\n- Convenient event hooks and features for bulk event registration are provided - [docs/custom_events](docs/custom_events.md).\n- Methods such as Copy, Paste, and Cut are added to text boxes (Multiline/Input).\n- The system's default color scheme is utilized.\n\n## Link\n\n- [pypi.org > TkEasyGUI](https://pypi.org/project/tkeasygui/)\n- [GitHub > TkEasyGUI](https://github.com/kujirahand/tkeasygui-python/)\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 kujirahand  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "TkEasyGUI is simple GUI Library for Python3 with Tkinter",
    "version": "0.2.67",
    "project_urls": {
        "Documentation": "https://github.com/kujirahand/tkeasygui-python/blob/main/README.md",
        "Homepage": "https://github.com/kujirahand/tkeasygui-python",
        "Issues": "https://github.com/kujirahand/tkeasygui-python/issues",
        "Repository": "https://github.com/kujirahand/tkeasygui-python/"
    },
    "split_keywords": [
        "gui",
        " tkinter",
        " pysimplegui"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f06e558da6c9d09d8f353b326f5b529f7df1a77986c47a7ce44b494ab0820d16",
                "md5": "8241fb03a166d8094cd4e3da5dc1bac7",
                "sha256": "b28ab972c0cc2e193019464a6879d72a7f45588fbd71ad670f76e4b9c14814a4"
            },
            "downloads": -1,
            "filename": "TkEasyGUI-0.2.67-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8241fb03a166d8094cd4e3da5dc1bac7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 37249,
            "upload_time": "2024-04-27T13:49:03",
            "upload_time_iso_8601": "2024-04-27T13:49:03.226903Z",
            "url": "https://files.pythonhosted.org/packages/f0/6e/558da6c9d09d8f353b326f5b529f7df1a77986c47a7ce44b494ab0820d16/TkEasyGUI-0.2.67-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "66ecb48d12557d16c627a7627b888398eb0ab24a9d986d28dcc7a8647e06fb68",
                "md5": "fc4347926fb78152859ee99161ae64dc",
                "sha256": "92d949bf519af2add46a1c4030a40ef8fdc9beeae66dbf291309f53c4a38379f"
            },
            "downloads": -1,
            "filename": "tkeasygui-0.2.67.tar.gz",
            "has_sig": false,
            "md5_digest": "fc4347926fb78152859ee99161ae64dc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 37736,
            "upload_time": "2024-04-27T13:49:06",
            "upload_time_iso_8601": "2024-04-27T13:49:06.989799Z",
            "url": "https://files.pythonhosted.org/packages/66/ec/b48d12557d16c627a7627b888398eb0ab24a9d986d28dcc7a8647e06fb68/tkeasygui-0.2.67.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-27 13:49:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kujirahand",
    "github_project": "tkeasygui-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "tkeasygui"
}
        
Elapsed time: 0.35579s