Skip to content

This repository provides a straightforward way to install Tkinter into your Python embedded distribution.

License

Notifications You must be signed in to change notification settings

ChrisColeTech/tkinter-standalone

Repository files navigation

🛠️ Standalone Tkinter for Embedded Python 🛠️

This repository provides a straightforward way to install Tkinter into your Python embedded distribution. By following the instructions here, you can quickly set up Tkinter in your Python environment, ensuring you have all the necessary files and configurations to start building your desktop applications.

Why Use This Repository?

  • Embed Tkinter: This repository includes the required Tkinter files and configurations for different Python versions, tailored specifically for embedded Python distributions.
  • Easy Integration: Follow our easy drag-and-drop instructions to integrate Tkinter into your Python setup.
  • Version-Specific: We provide support for Python versions 3.10, 3.11, and 3.12, ensuring compatibility with your specific environment.

🚀 Getting Started

🐍 For Python 3.10

  1. Download the Zip File from HERE: Unzip the provided archive to reveal the tkinter directory.

  2. Navigate to: tkinter/3.10/python_embedded

  3. Move Files: Drag and drop the files from python_embedded to your embedded Python directory.

  4. Verify Structure: After moving the files, your folder structure should resemble this:

    Ensure:

    • tcl folder is at the root of the embedded distribution.
    • tkinter folder is at the root of the embedded distribution.
    • _tkinter.pyd, tcl86t.dll, and tk86t.dll are in the DLLs folder.
    • IMPORTANT: Either replace python310._pth with the one provided in the Zip or edit your current python310._pth to include ./DLLs.
  5. Test Tkinter: Run the following command to confirm Tkinter is set up correctly:

    python -m tkinter


🐍 For Python 3.11

  1. Download the Zip File from HERE: Unzip the provided archive to reveal the tkinter directory.

  2. Navigate to: tkinter/3.11/python_embedded

  3. Move Files: Drag and drop the files from python_embedded to your embedded Python directory.

  4. Verify Structure: After moving the files, your folder structure should resemble  this:

    • FOR 3.11 ONLY: The tkinter folder should be at \Lib\site-packages\tkinter

    Ensure:

    • tcl folder is at the root of the embedded distribution.
    • tkinter folder is located at \Lib\site-packages\tkinter.
    • _tkinter.pyd, tcl86t.dll, and tk86t.dll are in the DLLs folder.
    • IMPORTANT: Either replace python311._pth with the one provided or edit your current python311._pth to include ./DLLs.
  5. Test Tkinter: Execute this command to verify installation:

    python -m tkinter


🐍 For Python 3.12

  1. Download the Zip File from HERE: Unzip the provided archive to reveal the tkinter directory.

  2. Navigate to: tkinter/3.12/python_embedded

  3. Move Files: Drag and drop the files from python_embedded to your embedded Python directory.

  4. Verify Structure: After moving the files, your folder structure should resemble this:

  • FOR 3.12 ONLY: The zlib1.dll should be placed in the DLLs folder

    Ensure:

    • tcl folder is at the root of the embedded distribution.
    • tkinter folder is also at the root of the embedded distribution.
    • _tkinter.pyd, tcl86t.dll, tk86t.dll, and zlib1.dll are in the DLLs folder.
    • IMPORTANT: Either replace python312._pth with the one provided or edit your current python312._pth to include ./DLLs.
  1. Test Tkinter: Run this command to confirm Tkinter is properly installed:

    python -m tkinter


🎉 All Done! 🎉

You’re now ready to use Tkinter with your embedded Python distribution. If you encounter any issues, double-check the folder structure and file placements, and ensure you’ve followed the instructions for your specific Python version. Happy coding! 🚀

About

This repository provides a straightforward way to install Tkinter into your Python embedded distribution.

Resources

License

Stars

Watchers

Forks

Packages

No packages published