Python GUI With Drag and Drop Using Figma and Tkinter Designer
Design the interface in Figma by dragging elements onto a frame, then convert that design into Tkinter code with Tkinter Designer. You only write the button logic yourself, and PyInstaller packages the finished app as a standalone executable.
Design the GUI in Figma
Figma is a free, web-based design tool. Create a free account at figma.com, then create a frame and set its width and height on the right. I used 600 by 400 pixels.
Draw a rectangle for the background and give it a fill color. I chose blue. Add text for the title and for the labels, and use rectangles as the input fields.

To duplicate an input field, select the rectangle and its label and press Ctrl D, then drag the copy down. Make the rectangle of the last field larger to turn it into a text area, and change the labels to email address and comments.
For the submit button, draw a rectangle with rounded corners, give it a light green fill and center a text label on it. To add an image, drag one from your desktop onto the canvas and resize or crop it to fit the frame.
Prepare the design for export
Tkinter Designer reads layer names, so name your elements before you export. Group the button rectangle and its label, and rename the group to “Button”. For a hover effect, duplicate the button and change its color or opacity.

Convert the design to Python
Tkinter Designer turns the Figma file into a Python script plus an assets folder. Download or clone the Tkinter Designer repository from GitHub and install the packages listed in its documentation.
In Figma, copy the file URL and generate an API token under your account settings. Paste both into the Tkinter Designer app, choose an output path and generate.

A new folder appears with the assets and the Python file. Run the script, for example in Visual Studio Code, to see input fields, a text area and a button with a hover effect. The generated code is plain Tkinter, the same library as in my first Tkinter GUI program. The start of the generated file looks like this:
# This file was generated by the Tkinter Designer by Parth Jadhav
# https://github.com/ParthJadhav/Tkinter-Designer
from pathlib import Path
# from tkinter import *
# Explicit imports to satisfy Flake8
from tkinter import Tk, Canvas, Entry, Text, Button, PhotoImage
OUTPUT_PATH = Path(__file__).parent
ASSETS_PATH = OUTPUT_PATH / Path(r"C:\Users\YOUR_USERNAME\Desktop\build\assets\frame0")
def relative_to_assets(path: str) -> Path:
return ASSETS_PATH / Path(path)
window = Tk()
window.geometry("600x400")
window.configure(bg = "#FFFFFF")
The button does nothing yet. Connecting it to your own logic is the part you write by hand, and the same Tkinter basics apply as in any other Python GUI.
Turn the GUI into an exe
PyInstaller packages the script so people without Python can run it. Open a terminal in the build folder, create a virtual environment, activate it and install PyInstaller.
python -m venv venv
venv\Scripts\activate
pip install pyinstaller
First, change the assets path in the generated gui.py. The generated file points to an absolute path on your machine, which does not exist inside the executable. This version finds the images both as a normal script and inside the PyInstaller bundle:
from pathlib import Path
# from tkinter import *
# Explicit imports to satisfy Flake8
from tkinter import Tk, Canvas, Entry, Text, Button, PhotoImage
import sys
# Determine the base path for assets
def get_base_path():
if hasattr(sys, "_MEIPASS"):
return Path(sys._MEIPASS) / "assets" / "frame0"
return Path(__file__).parent / "assets" / "frame0"
ASSETS_PATH = get_base_path()
Then build the executable and bundle the assets folder with it. --add-data copies the folder into the bundle, which is where sys._MEIPASS points at runtime. --onefile creates a single exe and --windowed hides the console window.
pyinstaller --onefile --windowed --add-data "assets;assets" gui.py
Windows may flag the new exe as a virus. This is a common false positive with PyInstaller builds. In the video I switch real-time protection off for the build; the safer route is to add an exclusion for your project folder in Windows Security and keep protection on. When the build finishes, the executable is in the dist folder.

