Skip to main content

FunctionGUI

FunctionGUI is a simple GUI library built using tkinter, designed to help you quickly create graphical user interfaces with ease.

Installation

To install FunctionGUI, you can simply use pip:

pip install functiongui

FunctionGUI

FunctionGUI is a simple GUI library built using tkinter, designed to help you quickly create graphical user interfaces with ease.

Usage

import functiongui as fg

# Create the main window
root = fg.Window()

# Set the title
fg.Title(root, "FunctionGUI Example")

# Set design/theme
theme = fg.Design("cosmo")  # Uses ttkbootstrap

# Background Image
fg.BGImage(root, bg_image_path='your_image_path.jpg', width=500, height=400)

# BooleanVar for checkbox
check_var = fg.BulleanVar()

# Entry field
entry = fg.Entry(root, width=30, font="Helvetica", size=12, bg="white", fg="black", padx=5, pady=5)
fg.Place(entry)

# Button to print the entry value
def on_button_click():
    value = fg.GetEntry(entry)
    print("Entry value:", value)

button = fg.Button(root, text="Print Entry", command=on_button_click, font="Helvetica", size=12, bg="green", fg="white", width=20, height=2)
fg.Place(button, x=50, y=80)

# Label with StringVar
strvar = fg.StrVar(root, "Initial Text")
label = fg.Label(root, textvariabl=strvar, font="Arial", size=14, color="blue", wraplenght=200, width=30)
fg.Place(label)

# CheckBox
fg.ChexBox(root, text="Check me!", variable=check_var, command=lambda: print("Checkbox state:", check_var.get()))

# Dropdown
drop_var = fg.StrVar(root, "Option 1")
dropdown = fg.Dropdown(root, textvariable=drop_var, values=["Option 1", "Option 2", "Option 3"])
fg.Place(dropdown)

# Image display from file
fg.Image(root, "your_image_path.jpg", width=150, height=100)

# CSV functions (you can test separately)
fg.CVSWRITE("data.csv", [["Name", "Age"], ["Alice", 30]])
data = fg.CVSREAD("data.csv")
for row in data:
     print(row)

# File dialogs
open_path = fg.OpenFile("Choose a file")
save_path = fg.SaveFile("Save your file")

# Drag and Drop area
drag_and_drop = fg.DragDropArea(root)

# Scrollable widget demo
text_widget = tk.Text(root, height=5, width=40)
fg.ScrollBar(root, text_widget)
text_widget.pack()

# Exit & Close examples (uncomment if needed)
fg.Exit()

# close a window
fg.Close(root)

# Start the GUI loop
fg.Run(root)

Bugs

If you are finding bugs in the code, please report them to me @aaroh.charne@gmail.com. Please include a snippet of your code as well the problem. Thank You

Please check out my other Library Calclab @https://pypi.org/project/Calclab/

Metadata

Release files for FunctionGUI 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FunctionGUI 0.7.0
File Size Uploaded Provenance
functiongui-0.7.0.tar.gz 4.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for FunctionGUI 0.7.0
File Interpreter ABI Platform
functiongui-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / functiongui-0.7.0.tar.gz

Download URL functiongui-0.7.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
026aa177fc5eccb1d131915db92869696dea920ab876f67564edbd03a12427eb
BLAKE2b-256 checksum
How to use checksums
cd998156bb5864f61c90e8c1840df5165462ab34d00b3fd90ad2e23ffc13652d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release files / functiongui-0.7.0-py3-none-any.whl

Download URL functiongui-0.7.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ba04e26663f235e0cf0bb825a37b3a7cdf85d06e8266c8187a5a3d7217e4984
BLAKE2b-256 checksum
How to use checksums
207a07302a3707012a45fda1ae3aa2c52170cc6992bd6c389a80dffbad0d1193
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Security for FunctionGUI 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page