Easy way to launch Python scripts with the mouse in OS-X

后端 未结 2 1293
野趣味
野趣味 2020-12-06 02:28

I\'d like to write cross platform Python scripts that are GUI frontends for command line programs. The problem is I know a few Mac users who think that using the terminal w

2条回答
  •  情歌与酒
    2020-12-06 02:56

    py2app does this with aplomb. You make your Python script, use whatever dependencies you need (wx, Tkinter, etc.) and py2app makes you a standalone app bundle that will run in any modern OS X environment. It bundles Python too, so you can use any Python you want (not just the system default).

    The downside is that the generated apps might be large, up to 50MB if you have a lot of dependencies (though that is somewhat of an extreme).

提交回复
热议问题