How To Install Tkinter In Qpython

In this tutorial, we will learn how to install Tkinter in QPython. Tkinter is the standard Python interface to the Tk GUI toolkit. It’s a popular option for building simple graphical interfaces and is included with most Python installations. QPython is a script engine that runs Python on Android devices, allowing you to run your Python applications on your phone or tablet.


Before proceeding with this tutorial, make sure you have QPython installed on your Android device. You can download it from the Google Play Store using the following link: QPython on Google Play.

Step 1: Install QPypi

The first step in installing Tkinter is to install QPypi. QPypi is a package manager for QPython similar to the popular pip package installer for Python. You can install QPypi directly from QPython. Here’s how:

  1. Open the QPython app on your Android device.
  2. Go to the main screen and tap on the “IPPY” icon.
  3. Tap on the “Install QPypi” button and wait for it to download and install.

Step 2: Install Tkinter

Once you have QPypi installed, you can use it to install Tkinter for QPython. Follow these steps:

  1. Open the QPypi app on your Android device.
  2. Tap on the “Search” icon in the top right corner.
  3. Type "tkinter" in the search bar and tap the “Search” button.
  4. Find the “python-tkinter-lite” package in the search results and tap on it.
  5. Tap on the “Install” button and wait for QPypi to download and install Tkinter.

Step 3: Verify the Installation

Now that you have Tkinter installed, you can verify that it’s working correctly by creating a small test script in QPython.

  1. Open the QPython app on your Android device.
  2. Tap on the “Editor” icon to create a new Python script.
  3. Type the following test script:
  1. Save your script with a filename like "" and tap the “Run” button to run your test script.

Expected Output


In this tutorial, you have learned how to install Tkinter in QPython on your Android device. This will allow you to run Python applications with graphical interfaces on your phone or tablet. Now you can start developing and testing your own Tkinter apps with QPython!