pyside2が使えるようになるまでの記録

pyside2 のインストール

本家サイト  Qt for Python - Qt Wiki

pipenv install pyside2

Qt designerのダウンロード

build-system.fman.io

pyside2-uicの場所

仮想環境ディレクトリの中にある。

/Users/`USERNAME`/.local/share/virtualenvs/pipenv_dir-C96IXUAR/bin/pyside2-uic
pyside2-uic -o test.ui test.py

pyside2-uicが使えない問題

pyside2-uic -o source.ui source.py

何の問題かわからないがこれではfailure。source.uiも消えてしまうので注意!!

/Users/owner/.local/share/virtualenvs/pipenv_dir-C96IXUAR/bin/pyside2-uic mainwindow.ui

この形にすると標準出力にコードが排出されるので、これを直接pyファイルに落とし込んだらOK。

pyqtgraph (pyside2で使えるのはdevelop treeのもの)

公式リファレンス  http://www.pyqtgraph.org/documentation/index.html

pipenv install git+https://github.com/pyqtgraph/pyqtgraph.git@develop#egg=pyqtgraph

pillow

https://note.nkmk.me/python-pillow-basic/

pipenv install pillow

上記インストール終了後の流れで参考にしたサイトたち

Python3とPySide2でGUI作成 - Qiita

Pythonスクリプトの書き方(4パターン) | ガンマソフト株式会社

pipenvでgithubにあるライブラリをインストールする時の説明

python - "pipenv requires an #egg fragment for version controlled dependencies" warning when installing the BlueJeans meeting API client - Stack Overflow

menubarが表示されない

menubar.setNativeMenuBar(False) https://stackoverflow.com/questions/39574105/missing-menubar-in-pyqt5