Metadata-Version: 2.2
Name: gui_generator
Version: 2.0.1
Summary: GUI-generator enables quick and interactive interfaces for testing functions without requiring to build a full-fledged GUI.
Home-page: 
Author: CPUcademy
Author-email: cpucademy@gmail.com
License: MIT
Keywords: cpucademy CPUcademy GUIgenerator guigenerator tkinter GUI gui
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: Microsoft :: Windows
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/x-rst
License-File: LICENSE.txt
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: keywords
Dynamic: license
Dynamic: summary

==========================
GUIgenerator
==========================
The GUI-generator Python module enables quick and interactive interfaces for testing functions without requiring to build a full-fledged GUI.

It can be installed using the pip package manager (pip install gui-generator). To generate a GUI window, we only need to provide a function for the program to execute and, if it takes any parameters, specify their descriptions that will display next to the input fields. They have to be entered in the same order as the function's parameters. We can also provide an additional description that will display at the top of the window by adding the desc parameter. After the user enters the values and clicks "Confirm," the given function will execute. The value it returns is displayed in a new window.

The addInput() method creates a separate window at runtime for collecting additional input. It can take an argument with a description that will display next to the input field.

Usage
==========================

.. code-block:: bash

	from gui_generator import *

	def Average(n):
		s = 0
		for x in range(n):
			s += int(g.addInput("Enter a value:"))
		return s / n

	g = GUIgenerator()
	g.create(Average, args=["How many numbers:"], desc="Calculate the average value.")
