Make Qt for Python app a desktop app

It is a memorandum. As we approach the completion of our own application, we will also work on the surrounding area.

It's a little disappointing to use python3 hoge.py from the terminal to start the Gui application, but it's not about packaging, and I investigated if it could be easily placed on the desktop or in the Application folder. I saw it. It's my first time, but can I go with Automator? I came up with it, and refer to the following site. (Thank you.)

[Mac] How to make terminal commands into apps with Automator

If you work with Automater, create an app called hoge.app, and hit it on the desktop, the Gui app of QtforPython will start, but Automater's own twirl gear icon remains in the menu bar, which is Pretty sad.

First plan

start.sh


/usr/local/bin/python3 hoge.py &
exit

I don't know why the gear icon twirl doesn't disappear, so when I investigated further, I arrived at the following site. (Thank you.)

Automator shell script specifies the output destination of standard error

amendment

start.sh


/usr/local/bin/python3 mainwindow.py >& log &
exit

The gear icon has disappeared and it is in the desired state.

Recommended Posts

Make Qt for Python app a desktop app
Make a desktop app with Python with Electron
Qt for Python app self-update
Let's make a module for Python using SWIG
[Practice] Make a Watson app with Python! # 2 [Translation function]
[Practice] Make a Watson app with Python! # 1 [Language discrimination]
Make a bookmarklet in Python
[For play] Let's make Yubaba a LINE Bot (Python)
Make a fortune with Python
[Practice] Make a Watson app with Python! # 3 [Natural language classification]
[Python] Created a transformation app for world champion "Mr. Satan"
Experiment to make a self-catering PDF for Kindle with Python
How to make a Python package (written for an intern)
Make a Tweet box for Pepper
Python QT app Standalone App conversion memo
Let's make a GUI with python.
python / Make a dict from a list.
[Python] Make the function a lambda function
Let's make a graph with python! !!
Create a color picker for the color wheel with Python + Qt (PySide)
Slack --APIGateway --Lambda (Python) --How to make a RedShift interactive app
Make a scraping app with Python + Django + AWS and change jobs
Let's make a shiritori game with Python
[Python] How to make a class iterable
Create a simple GUI app in Python
Make a relation diagram of Python module
Let's create a virtual environment for Python
[Mac] Building a virtual environment for Python
Let's make a voice slowly with Python
Launch a Flask app in Python Anywhere
Get a token for conoha in python
A tool for easily entering Python code
ROS course 107 Make a client for rosblidge
Let's make a web framework with Python! (1)
Let's make a combination calculation in Python
Make a chessboard pattern for camera calibration
Let's make a Twitter Bot with Python!
Building a Python development environment for AI development
Let's make a web framework with Python! (2)
Let's make a Backend plugin for Errbot
A textbook for beginners made by Python beginners
2016-10-30 else for Python3> for:
[Python, Scala] Do a tutorial for Apache Spark
I made a python dictionary file for Neocomplete
Created a Python wrapper for the Qiita API
Make a Twitter trend bot with heroku + Python
Make a bot for Skype on EC2 (CentOS)
Make a histogram for the time being (matplotlib)
Make a copy of the list in Python
Tweet (API 1.1) on Google App Engine for Python
Try to make a "cryptanalysis" cipher with Python
Adjust font differences between Qt for Python OS
Python: Prepare a serializer for the class instance:
Create a color bar with Python + Qt (PySide)
[Python] Make a simple maze game with Pyxel
Make a rock-paper-scissors game in one line (python)
A memorandum for touching python Flask on heroku
Let's replace UWSC with Python (5) Let's make a Robot
Commands for creating a python3 environment with virtualenv
Make a joyplot-like plot of R in python
Create a color-specified widget with Python + Qt (PySide)