pyqt4topyqt5 icon indicating copy to clipboard operation
pyqt4topyqt5 copied to clipboard

how this script used ?

Open seghier opened this issue 7 years ago • 4 comments

hi can you explain step by step how this script used ?

seghier avatar Sep 11 '17 12:09 seghier

It's located at README.md .

Usage usage: pyqt4topyqt5.py [-h] [--nosubdir] [--followlinks] [-o O] [--diff [DIFF]] [--diffs] [--nolog] [--nopyqt5] path Basic example: porting the content of pyqt4app to pyqt5 in the directory pyqt5app: pyqt4topyqt5.py pyqt4app -o pyqt5app

Basically, you look for a module that uses PyQt4, and then point this script to this module.

python -m pyqt4topyqt5.py pyqt4app

But if you want it with another output, use -o option

python -m pyqt4topyqt5.py pyqt4app -o pyqt5name

Ronkiro avatar Jan 31 '19 01:01 Ronkiro

The syntax used leads to an error, how would someone go about run the script? The comments in the script are few and not helpful.

colllinnn avatar Jan 31 '19 04:01 colllinnn

Yeah, i think the description would be better if they included "python -m", like that:

python -m pyqt4topyqt5.py pyqt4app -o pyqt5name

Still, the syntax is kinda easy to use. If you find any errors, opening an new issue would be helpful.

Ronkiro avatar Jan 31 '19 23:01 Ronkiro

hi, i have the same issue : i tryed different command line, after placing the script in the same folder with source for V4QT programme.

C:> python -m pyqt4topyqt5.py pyqt4app -o pyqt5name C:> python -m pyqt4topyqt5 pyqt4app -o pyqt5name C:> python pyqt4topyqt5.py pyqt4app.py -o pyqt5name.py always i face the same error message : pyqt4topyqt5.py: error: unrecognized arguments: pyqt4app

tickman07 avatar Feb 15 '21 16:02 tickman07