Skip to content

Creating gui forms with tkinter is an easy way to provide a form and process inputs. In this example, we create the form from a json file and write after submitting the contents to a second json file.

Notifications You must be signed in to change notification settings

codeisconquer/python-tkinter-gui-json-gen

Repository files navigation

Simple python gui form json creator

Prerequisites

You should have python v 3.7 or newer

Install Tkinter

pip install tk
pip3 install tk

Install Pyinstaller

pip install pyinstaller
pip3 install pyinstaller

Install via requirements.txt

pip install -r ./requirements.txt
pip3 install -r ./requirements.txt

Starting the application

Run manually

python main.py
python3 main.py

When the application starts, the form_construction.json is loaded.
This file contains the blueprint, what input fields should be shown and saved.

When the Add button gets clicked, the new configuration will be appended to teaser.json.
If this file is not existant, a new will be created.

##Create binary executable pyinstaller main.py --onefile -n SimpleJsonForm

After successful compilation, the following file can be run.
Example: ./dist/SimpleJsonForm

About

Creating gui forms with tkinter is an easy way to provide a form and process inputs. In this example, we create the form from a json file and write after submitting the contents to a second json file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages