Project Update
BeigeHornet
Just shipped the killer feature everyone requested - automatic GUI generation from function signatures!
What's New:
Before vs After:
Before (manual GUI):
discard createWindow("Calculator", 400, 300)
addLabel("BMI Calculator")
addLabel("Weight (kg):")
addInput("", "70.0")
addLabel("Height (m):")
addInput("", "1.75")
addButton("Calculate") do:
# calculation logic here
showWindow()
After (auto-generated):
proc calculateBMI(weight: float, height: float): float =
## Calculate Body Mass Index
## weight: Weight in kilograms
## height: Height in meters
result = weight / (height * height)
autoGUI(calculateBMI) # That's it! Complete GUI generated!
The macro automatically:
Try it now:
GitHub: https://github.com/BeigeHornet151/nim-easygui
git clone https://github.com/BeigeHornet151/nim-easygui.git
cd nim-easygui
nimble install winim
nim c -r examples/macro_demo.nim
This makes nim-easygui unique in the Nim ecosystem - no other GUI library offers zero-boilerplate GUI generation from procedure signatures!
Perfect for teaching, rapid prototyping, and converting console tools to GUI apps.
What do you think? This is exactly what spectereye and cblake suggested!
tabs = {
'Demo': [ClsA, ClsB],
'ABOUT': [ABOUT],
}
Hello again, i shared my feature request as image below, show how it looks like :-)
https://excalidraw.com/#json=vYw6u2Shc-2cW8hEDvrMa,HUDBMmoS0FkQv_NEgF-yKg