Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how this script used ? #18

Open
seghier opened this issue Sep 11, 2017 · 4 comments
Open

how this script used ? #18

seghier opened this issue Sep 11, 2017 · 4 comments

Comments

@seghier
Copy link

seghier commented Sep 11, 2017

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

@Ronkiro
Copy link

Ronkiro commented Jan 31, 2019

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

@colllinnn
Copy link

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.

@Ronkiro
Copy link

Ronkiro commented Jan 31, 2019

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.

@tickman07
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants