Skip to Content
Python GUI Programming with Tkinter
book

Python GUI Programming with Tkinter

by Alan D. Moore
May 2018
Beginner to intermediate content levelBeginner to intermediate
452 pages
11h 26m
English
Packt Publishing
Content preview from Python GUI Programming with Tkinter

Building macOS application bundles

The bdist_mac build type creates an application bundle, a specially formatted directory with an .app extension that the Macintosh desktop treats as though it were an executable file.

bdist_mac has several configuration options, but we're only going to use two as follows:

cx.setup(    #...    options={
        ...
        'bdist_mac': {
            'bundle_name': 'ABQ-Data-Entry',
            'iconfile': 'abq.icns'
        }

Here, bundle_name sets the name of our application bundle. Normally, this would default to your project's name, but we're overriding it to use dashes instead of underscores. Note that using spaces in this value creates problems for cx_Freeze and is best avoided. The iconfile setting allows us to point to an ICNS file that macOS will use ...

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

Python GUI Programming with Tkinter - Second Edition

Python GUI Programming with Tkinter - Second Edition

Alan D. Moore

Publisher Resources

ISBN: 9781788835886Supplemental Content