Friday, February 17, 2017

LittleNote of Python and pyqt

Convert ui to python ( python27 and pyqt4 )

 C:\Python27\Lib\site-packages\PyQt4\pyuic4.bat C:\Users\LENOVO\PycharmProjects\IgPoster\IgPoster.ui -o C:\Users\LENOVO\PycharmProjects\IgPoster\IgPoster.py

pyinstaller python27 with hook

 python27 "C:\Python27\PyInstaller-3.2.1\pyinstaller.py" --runtime-hook "C:\Users\LENOVO\PycharmProjects\IgPoster_v1.1\rthook_pyqt4.py" "C:\Users\LENOVO\PycharmProjects\IgPoster_v1.1\Login.py" --noconsole --onefile --icon=bg.ico