Runnable with both Python3 and Python2, with both PyQt5 and PyQt4 by using Qt.py #2250

Open
kashikoibumi wants to merge 125 commits from kashikoibumi/py3qt into v0.6

125 Commits

Author SHA1 Message Date
Kashiko Koibumi
bb6dd07572
Merge branch 'py3' into py3qt 2024-08-03 05:53:28 +09:00
Kashiko Koibumi
37bbe44125
fix bug in generating deterministic address 2024-08-03 05:52:31 +09:00
Kashiko Koibumi
74a453ba31
Merge branch 'py3' into py3qt 2024-08-03 04:50:31 +09:00
Kashiko Koibumi
c1949434a0
Merge branch 'v0.6' into py3 2024-08-03 04:48:38 +09:00
Kashiko Koibumi
b978a241b5
Merge branch 'py3' into py3qt 2024-07-01 08:56:35 +09:00
Kashiko Koibumi
da58e00130
Merge branch 'v0.6' into py3 2024-07-01 04:42:14 +09:00
Kashiko Koibumi
8bfcc4cf38 add comments 2024-06-26 05:11:39 +09:00
Kashiko Koibumi
45d1c62f97
add comments 2024-06-26 05:10:44 +09:00
Kashiko Koibumi
e7b5f2957e use SafeConfigParser or ConfigParser, which is available 2024-06-25 07:49:51 +09:00
Kashiko Koibumi
909b9f2c8e
use SafeConfigParser or ConfigParser, which is available 2024-06-25 07:48:03 +09:00
Kashiko Koibumi
605f205a44
fix easy typo #2 2024-06-24 16:04:37 +09:00
Kashiko Koibumi
cdcffa4b3e fix timestamp type mismatch bug 2024-06-24 11:06:07 +09:00
Kashiko Koibumi
bdbe5cca61
fix timestamp type mismatch bug 2024-06-24 11:04:34 +09:00
Kashiko Koibumi
11ba022267 fix bug in detecting file system type 2024-06-23 00:48:55 +09:00
Kashiko Koibumi
229644cd1d
fix bug in detecting file system type 2024-06-23 00:47:51 +09:00
Kashiko Koibumi
0c110b9deb fix to be runnable with prctl module in Python3 2024-06-03 19:36:00 +09:00
Kashiko Koibumi
4041fefe13
fix to be runnable with prctl module in Python3 2024-06-03 19:34:32 +09:00
Kashiko Koibumi
d103297d06 fix UPnP to work with Python3 2024-06-01 13:10:23 +09:00
Kashiko Koibumi
13aa12c09d
fix UPnP to work with Python3 2024-06-01 13:08:38 +09:00
Kashiko Koibumi
9adcd1bdc9 fix SOCKS 2024-06-01 06:02:26 +09:00
Kashiko Koibumi
de0cd04772
fix SOCKS 2024-06-01 06:01:32 +09:00
Kashiko Koibumi
f8919a8f66
fix bug in responsibility of message list on Qt GUI 2024-05-31 18:20:08 +09:00
Kashiko Koibumi
f9d236444f fix bug in chunked database access 2024-05-31 18:05:52 +09:00
Kashiko Koibumi
a504384c94
fix bug in responsibility of message list on Qt GUI 2024-05-31 18:03:39 +09:00
Kashiko Koibumi
8c85539731
fix bug in chunked database access 2024-05-31 18:02:23 +09:00
Kashiko Koibumi
ba8ccfc488 fix bug on dandelion specific with Python3 2024-05-31 13:20:07 +09:00
Kashiko Koibumi
c59b9e6df1
fix bug on dandelion specific with Python3 2024-05-31 13:17:17 +09:00
Kashiko Koibumi
597372543b fix to pass tests 2024-05-31 10:06:29 +09:00
Kashiko Koibumi
1ec1b57190
fix to pass tests 2024-05-31 10:02:57 +09:00
Kashiko Koibumi
5af72b02e9 fix user agent format on debug log 2024-05-31 03:00:55 +09:00
Kashiko Koibumi
13c5e676e2
fix user agent format on debug log 2024-05-31 02:59:54 +09:00
Kashiko Koibumi
08650d5e8e fix unexpected label string 2024-05-31 02:53:10 +09:00
Kashiko Koibumi
047ee359b3
fix unexpected label string 2024-05-31 02:52:00 +09:00
Kashiko Koibumi
a1d633dc5f workaround to invalid tag type
tag sometimes contains str type, which causes an error in Python3.
2024-05-31 02:35:22 +09:00
Kashiko Koibumi
a6e980df2c use hexlify() to display hash ID 2024-05-31 02:35:05 +09:00
Kashiko Koibumi
bfda9fe65e
workaround to invalid tag type
tag sometimes contains str type, which causes an error in Python3.
2024-05-31 02:32:58 +09:00
Kashiko Koibumi
6bb138e483
use hexlify() to display hash ID 2024-05-31 02:31:41 +09:00
Kashiko Koibumi
e1661162b6 disable UPnP in Python3 temporally 2024-05-31 01:18:02 +09:00
Kashiko Koibumi
05b1294eca
disable UPnP in Python3 temporally 2024-05-31 01:15:20 +09:00
Kashiko Koibumi
0acae4c044
fix user agent display 2024-05-31 00:59:11 +09:00
Kashiko Koibumi
f07af4e803 fix TLS configuration bug 2024-05-31 00:50:40 +09:00
Kashiko Koibumi
4702dd2593
fix TLS configuration bug 2024-05-31 00:49:37 +09:00
Kashiko Koibumi
e4570cc662 Merge branch 'strict-blob' into py3qt 2024-05-30 21:48:45 +09:00
Kashiko Koibumi
0739f53744 Merge branch 'strict-blob' into py3 2024-05-30 21:48:27 +09:00
Kashiko Koibumi
1f092c0596
Merge branch 'py3' into py3qt 2024-05-30 21:48:01 +09:00
Kashiko Koibumi
0ff6b43d6e
fix imports 2024-05-30 21:19:16 +09:00
Kashiko Koibumi
31dcbd6d5f
add script to revert BLOB-keys into TEXT-keys 2024-05-30 21:06:26 +09:00
Kashiko Koibumi
07953592aa
fix careless mistakes 2024-05-30 20:09:16 +09:00
Kashiko Koibumi
01296a86b9
Merge branch 'strict-blob' into py3 2024-05-30 20:06:32 +09:00
Kashiko Koibumi
6638e26781 Merge branch 'py3' into py3qt 2024-05-30 18:38:49 +09:00
Kashiko Koibumi
35abdf204a
Merge branch 'v0.6' into py3 2024-05-30 18:38:31 +09:00
Kashiko Koibumi
d676ea3ec2
quick workaround for BLOB as TEXT problem (#2247) 2024-05-30 18:13:15 +09:00
Kashiko Koibumi
d9efe1cf46
fix for newer versions of Python3 2024-05-30 11:17:28 +09:00
Kashiko Koibumi
f04a7882fd
fix for newer versions of Python3 2024-05-30 11:15:11 +09:00
Kashiko Koibumi
67004f39b5
Merge branch 'py3' into py3qt 2024-05-30 02:25:20 +09:00
Kashiko Koibumi
c39dd18212
fix one of database compatibility problems; others remained 2024-05-30 02:10:02 +09:00
Kashiko Koibumi
e5c065416f
fix types 2024-05-30 01:49:57 +09:00
Kashiko Koibumi
2d9d30e1e1
fix one of database compatibility problems; others remained 2024-05-30 01:12:23 +09:00
Kashiko Koibumi
6637f56ae7
Merge branch 'qt5-wip' into py3qt 2024-05-29 21:39:16 +09:00
Kashiko Koibumi
822b90edaa
fix to connect with TLS in Python3 2024-05-28 13:54:58 +09:00
Kashiko Koibumi
c3d083d142
Merge branch 'memoryview' into py3 2024-05-28 13:41:44 +09:00
Kashiko Koibumi
10e5563d45
misc fixes to run with Python3; part 3 2024-05-28 13:40:17 +09:00
Kashiko Koibumi
0fa71f26e3
Merge branch 'openssl3' into py3 2024-05-28 13:18:54 +09:00
Kashiko Koibumi
df2631c4ee
misc fixes to run with Python3; part 2 2024-05-28 12:58:40 +09:00
Kashiko Koibumi
6ec9fb1a7e
Merge branch 'binary' into py3 2024-05-28 08:40:40 +09:00
Kashiko Koibumi
5fa08f4b3b
misc fixes to run with Python3 2024-05-28 00:12:27 +09:00
Kashiko Koibumi
b9bfa51844
fix import path compatible with both Python2 and Python3 2024-05-27 23:04:39 +09:00
Kashiko Koibumi
9c64db0d2a
remove restriction for Python3 and add startup script for Python3 2024-05-27 23:01:19 +09:00
Kashiko Koibumi
2a0d2d3a10 update translation files for using format() instead of arg() 2024-05-27 22:48:48 +09:00
Kashiko Koibumi
96c764bd94
refined: read from and write to SQLite database in binary mode
This modification is a preparation for migration to Python3.
2024-05-27 22:43:01 +09:00
Kashiko Koibumi
d38f42517c
fix address validator to work 2024-05-27 05:49:26 +09:00
Kashiko Koibumi
0f858bca89
read from and write to SQLite database in binary mode
This modification is a preparation for migration to Python3.
2024-05-27 04:45:40 +09:00
Kashiko Koibumi
d04d620c68
update translation files for using format() instead of arg() 2024-05-27 01:52:39 +09:00
Kashiko Koibumi
5ccfd520b8
Merge branch 'bytes-key' into py3 2024-05-27 00:09:56 +09:00
Kashiko Koibumi
a4c4338190
use bytes() on keys to be hashable in Python3 2024-05-26 23:38:41 +09:00
Kashiko Koibumi
4309cb3699
use buffer() in Python2 and use memoryview in Python3 2024-05-26 13:27:43 +09:00
Kashiko Koibumi
ba49d3289d
use binary literals for compatibility to Python3 2024-05-26 12:05:31 +09:00
Kashiko Koibumi
e0c2976a17 Merge branch 'six' into py3 2024-05-26 11:21:23 +09:00
Kashiko Koibumi
d4bb580ab1
fix importing collections for Python3 2024-05-26 11:17:30 +09:00
Kashiko Koibumi
4ee9986687
Merge branch 'six' into py3 2024-05-26 10:18:08 +09:00
Kashiko Koibumi
a11df0c583
use six.moves 2024-05-26 09:50:42 +09:00
Kashiko Koibumi
81a6bdb223
use six.assertRaisesRegex, six.assertRegex, six.assertNotRegex 2024-05-25 13:07:59 +09:00
Kashiko Koibumi
21a7bdba44
use six.int2byte(), six.byte2int, six.BytesIO 2024-05-25 12:27:32 +09:00
Kashiko Koibumi
46d56c703e
use six.itervalues(), six.iteritems() 2024-05-25 11:39:46 +09:00
Kashiko Koibumi
f37a973f5f
use six.PY2 and six.PY3 2024-05-25 09:06:02 +09:00
Kashiko Koibumi
f70aff617b
use import paths compatible with both Python2 and Python3 2024-05-24 12:42:29 +09:00
Kashiko Koibumi
046a29e1a8
stop using QString 2024-05-23 15:33:49 +09:00
Kashiko Koibumi
f181b85d97
replace all of arg() occurrences to format() 2024-05-22 17:14:00 +09:00
Kashiko Koibumi
4cd0df7299
use qtpy directly instead of using fallback-PyQt5 2024-05-22 13:05:32 +09:00
Kashiko Koibumi
aa9edcba2e
Merge branch 'v0.6' into qt5-wip 2024-05-22 08:27:27 +09:00
Kashiko Koibumi
72ba0b6bc1
make runnable with OpenSSL 3 in addition to other versions 2024-05-20 17:26:06 +09:00
1368013a4e
Remove rebasing artifact in depends 2021-12-15 20:53:57 +02:00
9910556216
Add "Ubuntu 20" key to depends.PACKAGES['qtpy'] dict 2021-12-15 19:31:33 +02:00
1434768957
Try to fix the issue with XKB in appimage by adding xkb-data package 2021-12-15 19:26:21 +02:00
d9fb640b26
Add python-qtpy into appimage recipe to build with Qt4 2021-12-15 19:10:27 +02:00
a0496813fa
Fix imports in bitmessageqt.tests 2021-12-15 19:07:56 +02:00
327a539a55
Replace removed cmp parameter of list.sort() by key in getSortedAccounts() 2021-12-15 19:07:56 +02:00
ced7b4df30
Fix UnicodeEncodeError in bitmessageqt.blacklist when deleting an entry 2021-12-15 19:07:56 +02:00
9a1424c189
qtpy based fallback for PyQt5 2021-12-15 19:07:55 +02:00
2f8734d60b
Change depends in stdeb.cfg 2021-12-15 19:07:39 +02:00
5acee0cf41
Remove redundant unicode() in plugins.indicator_libmessaging 2021-12-15 19:07:39 +02:00
e57a4fa7a9
bitmessageqt.__init__: removed or replaced unicode(), formatted a bit 2021-12-15 19:07:39 +02:00
6fd07a079d
bitmessageqt.account: replace unicode() by .decode() and format 2021-12-15 19:07:39 +02:00
caec9434b0
Replace unicode() by .decode() in bitmessageqt.foldertree 2021-12-15 19:07:39 +02:00
d75d388522
Sorted imports in __init__ and removed import from debug 2021-12-15 19:07:39 +02:00
229cf1ded9
Fix tray icon changing upon notification 2021-12-15 19:07:38 +02:00
4480d5d1dd
winbuild.sh script: additional packages 2021-12-15 19:07:38 +02:00
782010fc19
Changes for PyInstaller to build with qtpy and PyQt4 2021-12-15 19:07:38 +02:00
3e3985267a
Removed unused resources in ui-files 2021-12-15 19:07:38 +02:00
677c117290
Don't close BitmessageQtApplication.server in __del__() 2021-12-15 19:07:38 +02:00
46d8576a64
Suppressed pylint relative-import and pycodestyle E402 in depends 2021-12-15 19:07:38 +02:00
b046898553
Explicitly set wordWrap property to false in STableWidgets
on tabs "Send", "Blacklist" and "Network Status":
in qt5 it's probably true by default.
2021-12-15 19:07:38 +02:00
6864b4465a
PyQt5 based qtpy fallback 2021-12-15 19:07:37 +02:00
bc89000035
Handled pylint warnings in bitmessageqt, qidenticon, depends,
resolved pylint redefined-variable-type warnings,
marked autogenerated modules for skipping by pylint and flake8
2021-12-15 19:07:37 +02:00
c39c7d1397
Changed check_pyqt() to work with qtpy
(closes #897, closes #1418)
2021-12-15 19:07:37 +02:00
acaa2743ef
QWheelEvent.orientation() is obsolete, used angleDelta() instead 2021-12-15 19:07:37 +02:00
5f4b67a61e
fromAddress - str, subject - unicode
(for simple encoding like for extended)
2021-12-15 19:07:37 +02:00
c5de33d626
QComboBox.findData() compatible with pyside 2021-12-15 19:07:37 +02:00
3202082e76
No more arg() call on result of _translate() 2021-12-15 19:07:36 +02:00
1cae520191
Better formatting of connections table header 2021-12-15 19:07:36 +02:00
07c2a51429
Module support rewrite:
- added Qt API string into support request
  - finished flake8 formatting
2021-12-15 19:07:36 +02:00
58466d5424
Changes for pyside:
customwidgets in ui-files and QtGui.QPen instantiation
2021-12-15 19:07:36 +02:00
8dca39e902
Initial support for PyQt5 (main window shown) using QtPy package.
QtPy is a compatibility layer which allows to use the code written for
PyQt5 with any python Qt binding: PyQt4, PyQt5, pyside or pyside2.

Main differences in PyQt5:

  - all widget classes are now in QtWidgets package, not QtGui;
  - QString obsoleted by unicode (sip API 2);
  - changed the way of signals connection.

Closes: #1191
2021-12-15 19:07:34 +02:00
b9fca03ed1
Prepare newchandialog module for PyQt5/qtpy 2021-12-15 19:01:57 +02:00
01e5400afb
tr compatible with all Qt APIs 2021-12-15 19:01:56 +02:00