Give me a GUI
Project description
from gui_decorator import gui
@gui(title="The Title",
width=600,
height=400,
input_filter=[("Excel files", ".xlsx")],
output_filter=[("Excel files", ".xlsx"))])
def foo(input_path, output_path):
# use `yield` to send logs to the GUI
yield f"Got input_path: {input_path}"
yield f"Got output_path: {output_path}"
foo()
Decorator gui treats function foo as a generator and fetches logs from foo to its logging box. The wrapped function must include at least one yield to be treated as a generator.
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
gui_decorator-0.0.2.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gui_decorator-0.0.2.tar.gz.
File metadata
- Download URL: gui_decorator-0.0.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b21ff18a3a777d4eeda8b59314d5b144311db3294455e41e27aa872df133f98e
|
|
| MD5 |
0c3ab023968c80e36bdafb36bbef0901
|
|
| BLAKE2b-256 |
e503c089ee04a70f756bdb7537ab65ab16a9882bab82f8e50371235daf4f3695
|
File details
Details for the file gui_decorator-0.0.2-py3-none-any.whl.
File metadata
- Download URL: gui_decorator-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97c1c0c37b5e9bd9a0a5cb7eec2aec05f4eb0725878a563b0c988c1875f2942b
|
|
| MD5 |
4525d1db3b4052353617455ca60c0440
|
|
| BLAKE2b-256 |
db2c97fe223f34732c13a6472ea29f434e071ab27e24c696c3a0377d8fbbb836
|