Skip to main content

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


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)

Uploaded Source

Built Distribution

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

gui_decorator-0.0.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for gui_decorator-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b21ff18a3a777d4eeda8b59314d5b144311db3294455e41e27aa872df133f98e
MD5 0c3ab023968c80e36bdafb36bbef0901
BLAKE2b-256 e503c089ee04a70f756bdb7537ab65ab16a9882bab82f8e50371235daf4f3695

See more details on using hashes here.

File details

Details for the file gui_decorator-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for gui_decorator-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 97c1c0c37b5e9bd9a0a5cb7eec2aec05f4eb0725878a563b0c988c1875f2942b
MD5 4525d1db3b4052353617455ca60c0440
BLAKE2b-256 db2c97fe223f34732c13a6472ea29f434e071ab27e24c696c3a0377d8fbbb836

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