A simple Tkinter GUI library with basic widgets and functionality.
Project description
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/
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
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 functiongui-0.7.0.tar.gz.
File metadata
- Download URL: functiongui-0.7.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
026aa177fc5eccb1d131915db92869696dea920ab876f67564edbd03a12427eb
|
|
| MD5 |
b58ff31ec397d567802668758871c3c7
|
|
| BLAKE2b-256 |
cd998156bb5864f61c90e8c1840df5165462ab34d00b3fd90ad2e23ffc13652d
|
File details
Details for the file functiongui-0.7.0-py3-none-any.whl.
File metadata
- Download URL: functiongui-0.7.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ba04e26663f235e0cf0bb825a37b3a7cdf85d06e8266c8187a5a3d7217e4984
|
|
| MD5 |
560e644705964deabed06603d4df7f42
|
|
| BLAKE2b-256 |
207a07302a3707012a45fda1ae3aa2c52170cc6992bd6c389a80dffbad0d1193
|