Skip to Content
Tkinter GUI Programming by Example
book

Tkinter GUI Programming by Example

by David Love
April 2018
Beginner content levelBeginner
340 pages
7h 54m
English
Packt Publishing
Content preview from Tkinter GUI Programming by Example

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Tkinter GUI Application Development Blueprints, Second Edition - Second Edition

Tkinter GUI Application Development Blueprints, Second Edition - Second Edition

Bhaskar Chaudhary

Publisher Resources

ISBN: 9781788627481Supplemental Content