-
Notifications
You must be signed in to change notification settings - Fork 0
UFL Studio Documentation
UFL Studio is a Python-based GUI tool designed to work with the User-Friendly-Language (UFL). UFL is a simple, beginner-friendly programming language that aims to provide an easy way to create scripts and applications with a focus on clarity and ease of use. UFL Studio allows users to interact with UFL scripts through a graphical interface, making it more accessible and user-friendly.
Browse Functionality: Allows users to select UFL scripts from their file system.
Window Initialization: Sets up the application window with a specified size and title.
Theme Setting: Provides options to change the theme of the application window (e.g., dark or light mode).
Interactive Buttons: Allows users to create interactive buttons within UFL scripts.
Output Display: Shows the results and messages from UFL scripts in a text area.
Python: Ensure Python is installed on your system. Download it from Python's official website.
Script Download: Obtain the ufl_studio.py script from the repository.
Run the Script: Execute the script using Python. Open a terminal or command prompt and navigate to the directory containing ufl_studio.py, then run:
python ufl_studio.py
Or just run the .bat file whatever works best.
Launching the Application: Run ufl_studio.py (or ufl_studio.bat) to open the UFL Studio GUI.
Browsing for UFL Files: Click the "Browse" button to open a file dialog and select your UFL script file.
Launching the Script: Click the "Launch" button to interpret and execute the selected UFL script.
Interacting with Buttons: Use the interactive buttons created by the UFL script to perform operations.
Here is an example of a UFL script to create a simple calculator with buttons (also in the first page):
initializeWindow
setTheme("light")
say("Click buttons to perform operations.")
button("7")
button("8")
button("9")
button("/")
button("4")
button("5")
button("6")
button("*")
button("1")
button("2")
button("3")
button("-")
button("0")
button(".")
button("=")
button("+")
say("Enter numbers and click operations:")
If you encounter errors, the error messages will be displayed in the output area of the GUI. Common errors may include issues with the UFL script syntax or runtime errors in the script logic.
Contributions to UFL Studio and the UFL language are welcome. If you have suggestions, bug reports, or want to contribute code, please refer to the project's repository on GitHub.
For further assistance or questions, please refer to the project's GitHub issues page.