O'Reilly logo

Tkinter GUI Programming by Example by David Love

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preparing to package with setup.py

When packaging an application, a special file called setup.py is required. This file will be read by the packaging tool and used to determine things such as which libraries to include, and which files should be run when the user executes the application.

Create a file named setup.py in your main text editor folder (which I have named tkedit) and add the following content:

#!/usr/bin/env python3from distutils.core import setupsetup(  name='tkedit',  version='0.1',  description='This is a python text editor with syntax highlighting',  author='David Love',  py_modules = [    "colorchooser",    "findwindow",    "fontchooser",    "highlighter",    "linenumbers",    "textarea",    "texteditor",    ],    install_requires = [        "PyYAML",    ], entry_points ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required