Acoop
Acoop

Reputation: 2666

Create python app for mac

I have built a python command prompt program that I would like to export so that when an icon is clicked, it will automatically run, much like an app, but I have never seen an app that runs in the terminal. Should I try to make it an app and if so, how is this done? (Specifically for Mac)

Upvotes: 1

Views: 235

Answers (3)

TomTry
TomTry

Reputation: 77

If your script is small then the python docs indicate that the "Build Applet" tool might do the needful. See paragraph 4.5 of this link.

Upvotes: 0

zord
zord

Reputation: 4783

If you don't want a standalone app, just run a python script by clicking an icon, you can make a simple bash script to do it.

Here is a simple tutorial on that.

Upvotes: 1

Xeno
Xeno

Reputation: 89

If you're talking about packaging your python script into a standalone application for Mac, you can use py2app

Link Here: https://pythonhosted.org/py2app/

You basically just write a python script, and then use this to help package it.

I hope this helped!

Upvotes: 2

Related Questions