Home Learn GitHub ⬇ Download
Getting Started

Introduction to DragTK

DragTK is a visual Python GUI builder. It lets you design app windows by adding visual components onto a canvas, then generates the Python code for you behind the scenes.

What is DragTK for?

Python is one of the most widely taught programming languages in schools — but it doesn't come with a visual design tool. If you've ever used Visual Basic or similar tools, you'll know how useful it is to be able to see your app taking shape as you build it.

DragTK fills that gap. You drag widgets (buttons, labels, text boxes and more) onto a canvas, arrange them how you want, and DragTK writes the Tkinter Python code automatically. You can then add your own logic in the code editor, and run the app directly from within DragTK.

💡

Tkinter is Python's built-in library for building desktop applications with graphical interfaces. It comes included with Python — no extra installation needed.

What you'll need

Before you start, make sure you have the following installed on your computer:

🐍
Python 3.8 or later
Download from python.org. During installation, make sure to tick Add Python to PATH.
📦
DragTK
Download the .exe from the GitHub releases page and save it somewhere you can find it — no installation required.
⚠️

If your school's IT policy doesn't allow running .exe files, you can download the raw .py source files from GitHub instead and run DragTK.py directly using Python.

How the lessons are structured

The Learn section is split into two parts:

Widget Reference — a lesson for each type of widget you can add to your app, covering how to place it in DragTK and how to work with it in code. Start with Button and Label if you're new, then work through the rest as you need them.

Example Projects — guided walkthroughs that build complete apps from start to finish, using multiple widgets together. These are a great next step once you're comfortable with the basics.