Skip to content

Commit d41c65d

Browse files
author
8go
committed
update to Qt5
1 parent 78112d5 commit d41c65d

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

README.md

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,44 @@ Below a sample screenshot. More screenshots [here](screenshots).
4444
# Build and runtime requirements
4545

4646
* Use of passphrases must have been already enabled on your [Trezor](https://www.trezor.io) device.
47-
* [Python](https://www.python.org/) v2.7
48-
* PyCrypto
49-
* PyQt4
47+
* [Trezor](https://www.trezor.io) device
48+
* [Python](https://www.python.org/) v2.7 or 3.4+
49+
* [PyCrypto](https://pypi.python.org/pypi/pycrypto)
50+
* [PyQt5](https://pypi.python.org/pypi/PyQt5)
51+
* [Qt5](https://doc.qt.io/qt-5/)
5052
* [trezorlib from python-trezor](https://github.com/trezor/python-trezor)
53+
* [Versions 0.5.0 and older used PyQy4 instead of PyQy5. Read the README.md
54+
file of v0.5.0 for build requirements, dependencies, etc. Basically anything
55+
relating to PyQt5 has to be replaced with the corresponding component in PyQt4.
56+
`pyuic5` becomes `pyuic4`. `pyqt5-dev-tools` becomes `pyqt4-dev-tools`
57+
and so forth.]
5158

5259
# Building
5360

54-
Even though the whole code is in Python, there are few Qt `.ui` form files that
61+
Even though the whole code is in Python, there are few Qt5 `.ui` form files that
5562
need to be transformed into Python files. There is `Makefile`, you just need to run
5663

5764
make
5865

5966
## Build requirements
6067

61-
PyQt4 development tools are necessary, namely `pyuic4` (look for packages named
62-
like `pyqt4-dev-tools` or `PyQt4-devel`).
68+
* PyQt5 development tools are necessary, namely `pyuic5` (look for a package named
69+
`pyqt5-dev-tools`, `PyQt5-devel` or similar). Required to run `make`.
70+
* Depending on one's set-up one might need: `qttools5-dev-tools`
71+
(also sets up some of the Qt5 environment variables)
72+
* Depending on one's set-up one might need: `python-pyqt5` (Qt5 bindings for Python 2)
73+
* Depending on one's set-up one might need: `python3-pyqt5` (Qt5 bindings for Python 3)
74+
* Depending on one's set-up one might need: `python-pyqt5.qtsvg` (to display SVG logos in Python 2)
75+
* Depending on one's set-up one might need: `python3-pyqt5.qtsvg` (to display SVG logos in Python 3)
6376

6477
# Running
6578

6679
Run:
6780

6881
python TrezorSymmetricFileEncryption.py
82+
or
83+
84+
python3 TrezorSymmetricFileEncryption.py
6985

7086
Run-time command line options are
7187

@@ -264,7 +280,7 @@ single-file-executablefile.
264280
- - -
265281
**Question:** In which language is TrezorSymmetricFileEncryption written?
266282

267-
**Answer:** [Python](https://www.python.org/) 2.7. It wil currently not run on Python 3.
283+
**Answer:** [Python](https://www.python.org/). It runs on Python 2.7 and 3.4+.
268284
- - -
269285
**Question:** Do I need to have a [Trezor](https://www.trezor.io/) in
270286
order to use TrezorSymmetricFileEncryption?
@@ -366,9 +382,9 @@ written yet.
366382
TrezorSymmetricFileEncryption available?
367383

368384
**Answer:** On all platforms, operating systems where
369-
[Python](https://www.python.org/) and PyQt4 is available: Windows, Linux, Unix,
370-
Mac OS X. Internet searches show Python for Android and iOS,
371-
but it has not been investigated or tested on Android or iOS.
385+
[Python](https://www.python.org/) and PyQt5 is available: Windows, Linux, Unix,
386+
Mac OS X. Internet searches show Python and PyQt5 for Android and iOS,
387+
but it has not been investigated, built, or tested on Android or iOS.
372388
Testing has only been done on Linux.
373389
- - -
374390
**Question:** Is it fast?

0 commit comments

Comments
 (0)