Skip to content

Commit 6d7b239

Browse files
committed
Add password icons as resources, portability.
1 parent a3fad2a commit 6d7b239

File tree

7 files changed

+445
-6
lines changed

7 files changed

+445
-6
lines changed

qtwidgets/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from .colorbutton import ColorButton
22
# from color_duo
33
# from equalizer
4-
from .equalizer_bar import Equalizer
4+
from .equalizer_bar import EqualizerBar
55
# from filebrowser
66
from .gradient import Gradient
77
from .paint import Paint
88
from .passwordedit import PasswordEdit
99
from .power_bar import PowerBar
10-
from .palette import Palette
10+
from .palette import PaletteGrid, PaletteHorizontal, PaletteVertical
1111
# from scrubber
1212
# from stopwatch

qtwidgets/passwordedit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from passwordedit import PasswordEdit
1+
from .password import PasswordEdit

qtwidgets/passwordedit/password.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
from PyQt5 import QtCore, QtGui, QtWidgets
44
from PyQt5.QtCore import Qt
55
from PyQt5.QtCore import pyqtSignal as Signal
6+
from . import resources_pyqt5
67

78
else:
89
from PySide2 import QtCore, QtGui, QtWidgets
910
from PySide2.QtCore import Qt
1011
from PySide2.QtCore import Signal
12+
from . import resources_pyside2
1113

1214

1315
class PasswordEdit(QtWidgets.QLineEdit):
@@ -18,8 +20,8 @@ class PasswordEdit(QtWidgets.QLineEdit):
1820
def __init__(self, show_visibility=True, *args, **kwargs):
1921
super().__init__(*args, **kwargs)
2022

21-
self.visibleIcon = QtGui.QIcon("eye.svg")
22-
self.hiddenIcon = QtGui.QIcon("hidden.svg")
23+
self.visibleIcon = QtGui.QIcon(":/icons/eye.svg")
24+
self.hiddenIcon = QtGui.QIcon(":/icons/hidden.svg")
2325

2426
self.setEchoMode(QtWidgets.QLineEdit.Password)
2527

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!DOCTYPE RCC>
2+
<RCC version="1.0">
3+
<qresource prefix="icons">
4+
<file alias="eye.svg">eye.svg</file>
5+
<file alias="hidden.svg">hidden.svg</file>
6+
</qresource>
7+
</RCC>
Lines changed: 224 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,224 @@
1+
# -*- coding: utf-8 -*-
2+
3+
# Resource object code
4+
#
5+
# Created by: The Resource Compiler for PyQt5 (Qt v5.13.0)
6+
#
7+
# WARNING! All changes made in this file will be lost!
8+
9+
from PyQt5 import QtCore
10+
11+
qt_resource_data = b"\
12+
\x00\x00\x05\xc2\
13+
\x3c\
14+
\x3f\x78\x6d\x6c\x20\x76\x65\x72\x73\x69\x6f\x6e\x3d\x22\x31\x2e\
15+
\x30\x22\x20\x65\x6e\x63\x6f\x64\x69\x6e\x67\x3d\x22\x69\x73\x6f\
16+
\x2d\x38\x38\x35\x39\x2d\x31\x22\x3f\x3e\x0d\x0a\x3c\x21\x2d\x2d\
17+
\x20\x47\x65\x6e\x65\x72\x61\x74\x6f\x72\x3a\x20\x41\x64\x6f\x62\
18+
\x65\x20\x49\x6c\x6c\x75\x73\x74\x72\x61\x74\x6f\x72\x20\x31\x39\
19+
\x2e\x30\x2e\x30\x2c\x20\x53\x56\x47\x20\x45\x78\x70\x6f\x72\x74\
20+
\x20\x50\x6c\x75\x67\x2d\x49\x6e\x20\x2e\x20\x53\x56\x47\x20\x56\
21+
\x65\x72\x73\x69\x6f\x6e\x3a\x20\x36\x2e\x30\x30\x20\x42\x75\x69\
22+
\x6c\x64\x20\x30\x29\x20\x20\x2d\x2d\x3e\x0d\x0a\x3c\x73\x76\x67\
23+
\x20\x76\x65\x72\x73\x69\x6f\x6e\x3d\x22\x31\x2e\x31\x22\x20\x69\
24+
\x64\x3d\x22\x43\x61\x70\x61\x5f\x31\x22\x20\x78\x6d\x6c\x6e\x73\
25+
\x3d\x22\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x77\x33\x2e\
26+
\x6f\x72\x67\x2f\x32\x30\x30\x30\x2f\x73\x76\x67\x22\x20\x78\x6d\
27+
\x6c\x6e\x73\x3a\x78\x6c\x69\x6e\x6b\x3d\x22\x68\x74\x74\x70\x3a\
28+
\x2f\x2f\x77\x77\x77\x2e\x77\x33\x2e\x6f\x72\x67\x2f\x31\x39\x39\
29+
\x39\x2f\x78\x6c\x69\x6e\x6b\x22\x20\x78\x3d\x22\x30\x70\x78\x22\
30+
\x20\x79\x3d\x22\x30\x70\x78\x22\x0d\x0a\x09\x20\x76\x69\x65\x77\
31+
\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x34\x36\x39\x2e\x34\x34\x20\
32+
\x34\x36\x39\x2e\x34\x34\x22\x20\x73\x74\x79\x6c\x65\x3d\x22\x65\
33+
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
34+
\x3a\x6e\x65\x77\x20\x30\x20\x30\x20\x34\x36\x39\x2e\x34\x34\x20\
35+
\x34\x36\x39\x2e\x34\x34\x3b\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\
36+
\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0d\x0a\
37+
\x3c\x67\x3e\x0d\x0a\x09\x3c\x67\x3e\x0d\x0a\x09\x09\x3c\x67\x3e\
38+
\x0d\x0a\x09\x09\x09\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x32\
39+
\x33\x31\x2e\x31\x34\x37\x2c\x31\x36\x30\x2e\x33\x37\x33\x6c\x36\
40+
\x37\x2e\x32\x2c\x36\x37\x2e\x32\x6c\x30\x2e\x33\x32\x2d\x33\x2e\
41+
\x35\x32\x63\x30\x2d\x33\x35\x2e\x33\x30\x37\x2d\x32\x38\x2e\x36\
42+
\x39\x33\x2d\x36\x34\x2d\x36\x34\x2d\x36\x34\x4c\x32\x33\x31\x2e\
43+
\x31\x34\x37\x2c\x31\x36\x30\x2e\x33\x37\x33\x7a\x22\x2f\x3e\x0d\
44+
\x0a\x09\x09\x09\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x32\x33\
45+
\x34\x2e\x36\x36\x37\x2c\x31\x31\x37\x2e\x33\x38\x37\x63\x35\x38\
46+
\x2e\x38\x38\x2c\x30\x2c\x31\x30\x36\x2e\x36\x36\x37\x2c\x34\x37\
47+
\x2e\x37\x38\x37\x2c\x31\x30\x36\x2e\x36\x36\x37\x2c\x31\x30\x36\
48+
\x2e\x36\x36\x37\x63\x30\x2c\x31\x33\x2e\x37\x36\x2d\x32\x2e\x37\
49+
\x37\x33\x2c\x32\x36\x2e\x38\x38\x2d\x37\x2e\x35\x37\x33\x2c\x33\
50+
\x38\x2e\x39\x33\x33\x6c\x36\x32\x2e\x34\x2c\x36\x32\x2e\x34\x0d\
51+
\x0a\x09\x09\x09\x09\x63\x33\x32\x2e\x32\x31\x33\x2d\x32\x36\x2e\
52+
\x38\x38\x2c\x35\x37\x2e\x36\x2d\x36\x31\x2e\x36\x35\x33\x2c\x37\
53+
\x33\x2e\x32\x38\x2d\x31\x30\x31\x2e\x33\x33\x33\x63\x2d\x33\x37\
54+
\x2e\x30\x31\x33\x2d\x39\x33\x2e\x36\x35\x33\x2d\x31\x32\x38\x2d\
55+
\x31\x36\x30\x2d\x32\x33\x34\x2e\x37\x37\x33\x2d\x31\x36\x30\x63\
56+
\x2d\x32\x39\x2e\x38\x36\x37\x2c\x30\x2d\x35\x38\x2e\x34\x35\x33\
57+
\x2c\x35\x2e\x33\x33\x33\x2d\x38\x35\x2e\x30\x31\x33\x2c\x31\x34\
58+
\x2e\x39\x33\x33\x6c\x34\x36\x2e\x30\x38\x2c\x34\x35\x2e\x39\x37\
59+
\x33\x0d\x0a\x09\x09\x09\x09\x43\x32\x30\x37\x2e\x37\x38\x37\x2c\
60+
\x31\x32\x30\x2e\x32\x36\x37\x2c\x32\x32\x30\x2e\x39\x30\x37\x2c\
61+
\x31\x31\x37\x2e\x33\x38\x37\x2c\x32\x33\x34\x2e\x36\x36\x37\x2c\
62+
\x31\x31\x37\x2e\x33\x38\x37\x7a\x22\x2f\x3e\x0d\x0a\x09\x09\x09\
63+
\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x32\x31\x2e\x33\x33\x33\
64+
\x2c\x35\x39\x2e\x32\x35\x33\x6c\x34\x38\x2e\x36\x34\x2c\x34\x38\
65+
\x2e\x36\x34\x6c\x39\x2e\x37\x30\x37\x2c\x39\x2e\x37\x30\x37\x43\
66+
\x34\x34\x2e\x34\x38\x2c\x31\x34\x35\x2e\x31\x32\x2c\x31\x36\x2e\
67+
\x36\x34\x2c\x31\x38\x31\x2e\x37\x30\x37\x2c\x30\x2c\x32\x32\x34\
68+
\x2e\x30\x35\x33\x63\x33\x36\x2e\x39\x30\x37\x2c\x39\x33\x2e\x36\
69+
\x35\x33\x2c\x31\x32\x38\x2c\x31\x36\x30\x2c\x32\x33\x34\x2e\x36\
70+
\x36\x37\x2c\x31\x36\x30\x0d\x0a\x09\x09\x09\x09\x63\x33\x33\x2e\
71+
\x30\x36\x37\x2c\x30\x2c\x36\x34\x2e\x36\x34\x2d\x36\x2e\x34\x2c\
72+
\x39\x33\x2e\x35\x34\x37\x2d\x31\x38\x2e\x30\x32\x37\x6c\x39\x2e\
73+
\x30\x36\x37\x2c\x39\x2e\x30\x36\x37\x6c\x36\x32\x2e\x31\x38\x37\
74+
\x2c\x36\x32\x2e\x32\x39\x33\x6c\x32\x37\x2e\x32\x2d\x32\x37\x2e\
75+
\x30\x39\x33\x4c\x34\x38\x2e\x35\x33\x33\x2c\x33\x32\x2e\x30\x35\
76+
\x33\x4c\x32\x31\x2e\x33\x33\x33\x2c\x35\x39\x2e\x32\x35\x33\x7a\
77+
\x20\x4d\x31\x33\x39\x2e\x33\x30\x37\x2c\x31\x37\x37\x2e\x31\x32\
78+
\x0d\x0a\x09\x09\x09\x09\x6c\x33\x32\x2e\x39\x36\x2c\x33\x32\x2e\
79+
\x39\x36\x63\x2d\x30\x2e\x39\x36\x2c\x34\x2e\x35\x38\x37\x2d\x31\
80+
\x2e\x36\x2c\x39\x2e\x31\x37\x33\x2d\x31\x2e\x36\x2c\x31\x33\x2e\
81+
\x39\x37\x33\x63\x30\x2c\x33\x35\x2e\x33\x30\x37\x2c\x32\x38\x2e\
82+
\x36\x39\x33\x2c\x36\x34\x2c\x36\x34\x2c\x36\x34\x63\x34\x2e\x38\
83+
\x2c\x30\x2c\x39\x2e\x33\x38\x37\x2d\x30\x2e\x36\x34\x2c\x31\x33\
84+
\x2e\x38\x36\x37\x2d\x31\x2e\x36\x6c\x33\x32\x2e\x39\x36\x2c\x33\
85+
\x32\x2e\x39\x36\x0d\x0a\x09\x09\x09\x09\x63\x2d\x31\x34\x2e\x31\
86+
\x38\x37\x2c\x37\x2e\x30\x34\x2d\x32\x39\x2e\x39\x37\x33\x2c\x31\
87+
\x31\x2e\x33\x30\x37\x2d\x34\x36\x2e\x38\x32\x37\x2c\x31\x31\x2e\
88+
\x33\x30\x37\x43\x31\x37\x35\x2e\x37\x38\x37\x2c\x33\x33\x30\x2e\
89+
\x37\x32\x2c\x31\x32\x38\x2c\x32\x38\x32\x2e\x39\x33\x33\x2c\x31\
90+
\x32\x38\x2c\x32\x32\x34\x2e\x30\x35\x33\x43\x31\x32\x38\x2c\x32\
91+
\x30\x37\x2e\x32\x2c\x31\x33\x32\x2e\x32\x36\x37\x2c\x31\x39\x31\
92+
\x2e\x34\x31\x33\x2c\x31\x33\x39\x2e\x33\x30\x37\x2c\x31\x37\x37\
93+
\x2e\x31\x32\x7a\x22\x0d\x0a\x09\x09\x09\x09\x2f\x3e\x0d\x0a\x09\
94+
\x09\x3c\x2f\x67\x3e\x0d\x0a\x09\x3c\x2f\x67\x3e\x0d\x0a\x3c\x2f\
95+
\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\
96+
\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\
97+
\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\
98+
\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\
99+
\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\
100+
\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\
101+
\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\
102+
\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\
103+
\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\
104+
\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\
105+
\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x2f\x73\x76\x67\x3e\x0d\
106+
\x0a\
107+
\x00\x00\x04\x20\
108+
\x3c\
109+
\x3f\x78\x6d\x6c\x20\x76\x65\x72\x73\x69\x6f\x6e\x3d\x22\x31\x2e\
110+
\x30\x22\x20\x65\x6e\x63\x6f\x64\x69\x6e\x67\x3d\x22\x69\x73\x6f\
111+
\x2d\x38\x38\x35\x39\x2d\x31\x22\x3f\x3e\x0d\x0a\x3c\x21\x2d\x2d\
112+
\x20\x47\x65\x6e\x65\x72\x61\x74\x6f\x72\x3a\x20\x41\x64\x6f\x62\
113+
\x65\x20\x49\x6c\x6c\x75\x73\x74\x72\x61\x74\x6f\x72\x20\x31\x39\
114+
\x2e\x30\x2e\x30\x2c\x20\x53\x56\x47\x20\x45\x78\x70\x6f\x72\x74\
115+
\x20\x50\x6c\x75\x67\x2d\x49\x6e\x20\x2e\x20\x53\x56\x47\x20\x56\
116+
\x65\x72\x73\x69\x6f\x6e\x3a\x20\x36\x2e\x30\x30\x20\x42\x75\x69\
117+
\x6c\x64\x20\x30\x29\x20\x20\x2d\x2d\x3e\x0d\x0a\x3c\x73\x76\x67\
118+
\x20\x76\x65\x72\x73\x69\x6f\x6e\x3d\x22\x31\x2e\x31\x22\x20\x69\
119+
\x64\x3d\x22\x43\x61\x70\x61\x5f\x31\x22\x20\x78\x6d\x6c\x6e\x73\
120+
\x3d\x22\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x77\x33\x2e\
121+
\x6f\x72\x67\x2f\x32\x30\x30\x30\x2f\x73\x76\x67\x22\x20\x78\x6d\
122+
\x6c\x6e\x73\x3a\x78\x6c\x69\x6e\x6b\x3d\x22\x68\x74\x74\x70\x3a\
123+
\x2f\x2f\x77\x77\x77\x2e\x77\x33\x2e\x6f\x72\x67\x2f\x31\x39\x39\
124+
\x39\x2f\x78\x6c\x69\x6e\x6b\x22\x20\x78\x3d\x22\x30\x70\x78\x22\
125+
\x20\x79\x3d\x22\x30\x70\x78\x22\x0d\x0a\x09\x20\x76\x69\x65\x77\
126+
\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x34\x36\x39\x2e\x33\x33\x33\
127+
\x20\x34\x36\x39\x2e\x33\x33\x33\x22\x20\x73\x74\x79\x6c\x65\x3d\
128+
\x22\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\
129+
\x6e\x64\x3a\x6e\x65\x77\x20\x30\x20\x30\x20\x34\x36\x39\x2e\x33\
130+
\x33\x33\x20\x34\x36\x39\x2e\x33\x33\x33\x3b\x22\x20\x78\x6d\x6c\
131+
\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\x76\x65\
132+
\x22\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x09\x3c\x67\x3e\x0d\x0a\x09\
133+
\x09\x3c\x67\x3e\x0d\x0a\x09\x09\x09\x3c\x70\x61\x74\x68\x20\x64\
134+
\x3d\x22\x4d\x32\x33\x34\x2e\x36\x36\x37\x2c\x31\x37\x30\x2e\x36\
135+
\x36\x37\x63\x2d\x33\x35\x2e\x33\x30\x37\x2c\x30\x2d\x36\x34\x2c\
136+
\x32\x38\x2e\x36\x39\x33\x2d\x36\x34\x2c\x36\x34\x73\x32\x38\x2e\
137+
\x36\x39\x33\x2c\x36\x34\x2c\x36\x34\x2c\x36\x34\x73\x36\x34\x2d\
138+
\x32\x38\x2e\x36\x39\x33\x2c\x36\x34\x2d\x36\x34\x53\x32\x36\x39\
139+
\x2e\x39\x37\x33\x2c\x31\x37\x30\x2e\x36\x36\x37\x2c\x32\x33\x34\
140+
\x2e\x36\x36\x37\x2c\x31\x37\x30\x2e\x36\x36\x37\x7a\x22\x2f\x3e\
141+
\x0d\x0a\x09\x09\x09\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x32\
142+
\x33\x34\x2e\x36\x36\x37\x2c\x37\x34\x2e\x36\x36\x37\x43\x31\x32\
143+
\x38\x2c\x37\x34\x2e\x36\x36\x37\x2c\x33\x36\x2e\x39\x30\x37\x2c\
144+
\x31\x34\x31\x2e\x30\x31\x33\x2c\x30\x2c\x32\x33\x34\x2e\x36\x36\
145+
\x37\x63\x33\x36\x2e\x39\x30\x37\x2c\x39\x33\x2e\x36\x35\x33\x2c\
146+
\x31\x32\x38\x2c\x31\x36\x30\x2c\x32\x33\x34\x2e\x36\x36\x37\x2c\
147+
\x31\x36\x30\x0d\x0a\x09\x09\x09\x09\x63\x31\x30\x36\x2e\x37\x37\
148+
\x33\x2c\x30\x2c\x31\x39\x37\x2e\x37\x36\x2d\x36\x36\x2e\x33\x34\
149+
\x37\x2c\x32\x33\x34\x2e\x36\x36\x37\x2d\x31\x36\x30\x43\x34\x33\
150+
\x32\x2e\x34\x32\x37\x2c\x31\x34\x31\x2e\x30\x31\x33\x2c\x33\x34\
151+
\x31\x2e\x34\x34\x2c\x37\x34\x2e\x36\x36\x37\x2c\x32\x33\x34\x2e\
152+
\x36\x36\x37\x2c\x37\x34\x2e\x36\x36\x37\x7a\x20\x4d\x32\x33\x34\
153+
\x2e\x36\x36\x37\x2c\x33\x34\x31\x2e\x33\x33\x33\x0d\x0a\x09\x09\
154+
\x09\x09\x63\x2d\x35\x38\x2e\x38\x38\x2c\x30\x2d\x31\x30\x36\x2e\
155+
\x36\x36\x37\x2d\x34\x37\x2e\x37\x38\x37\x2d\x31\x30\x36\x2e\x36\
156+
\x36\x37\x2d\x31\x30\x36\x2e\x36\x36\x37\x53\x31\x37\x35\x2e\x37\
157+
\x38\x37\x2c\x31\x32\x38\x2c\x32\x33\x34\x2e\x36\x36\x37\x2c\x31\
158+
\x32\x38\x73\x31\x30\x36\x2e\x36\x36\x37\x2c\x34\x37\x2e\x37\x38\
159+
\x37\x2c\x31\x30\x36\x2e\x36\x36\x37\x2c\x31\x30\x36\x2e\x36\x36\
160+
\x37\x0d\x0a\x09\x09\x09\x09\x53\x32\x39\x33\x2e\x35\x34\x37\x2c\
161+
\x33\x34\x31\x2e\x33\x33\x33\x2c\x32\x33\x34\x2e\x36\x36\x37\x2c\
162+
\x33\x34\x31\x2e\x33\x33\x33\x7a\x22\x2f\x3e\x0d\x0a\x09\x09\x3c\
163+
\x2f\x67\x3e\x0d\x0a\x09\x3c\x2f\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\
164+
\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\
165+
\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\
166+
\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\
167+
\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\
168+
\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\
169+
\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\
170+
\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\
171+
\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\
172+
\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\
173+
\x0a\x3c\x67\x3e\x0d\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x67\x3e\x0d\
174+
\x0a\x3c\x2f\x67\x3e\x0d\x0a\x3c\x2f\x73\x76\x67\x3e\x0d\x0a\
175+
"
176+
177+
qt_resource_name = b"\
178+
\x00\x05\
179+
\x00\x6f\xa6\x53\
180+
\x00\x69\
181+
\x00\x63\x00\x6f\x00\x6e\x00\x73\
182+
\x00\x0a\
183+
\x0a\xcc\x85\x87\
184+
\x00\x68\
185+
\x00\x69\x00\x64\x00\x64\x00\x65\x00\x6e\x00\x2e\x00\x73\x00\x76\x00\x67\
186+
\x00\x07\
187+
\x0c\xf8\x5a\x07\
188+
\x00\x65\
189+
\x00\x79\x00\x65\x00\x2e\x00\x73\x00\x76\x00\x67\
190+
"
191+
192+
qt_resource_struct_v1 = b"\
193+
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
194+
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x02\
195+
\x00\x00\x00\x10\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
196+
\x00\x00\x00\x2a\x00\x00\x00\x00\x00\x01\x00\x00\x05\xc6\
197+
"
198+
199+
qt_resource_struct_v2 = b"\
200+
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
201+
\x00\x00\x00\x00\x00\x00\x00\x00\
202+
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x02\
203+
\x00\x00\x00\x00\x00\x00\x00\x00\
204+
\x00\x00\x00\x10\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
205+
\x00\x00\x01\x70\x07\x71\x34\x34\
206+
\x00\x00\x00\x2a\x00\x00\x00\x00\x00\x01\x00\x00\x05\xc6\
207+
\x00\x00\x01\x70\x07\x71\x34\x34\
208+
"
209+
210+
qt_version = [int(v) for v in QtCore.qVersion().split('.')]
211+
if qt_version < [5, 8, 0]:
212+
rcc_version = 1
213+
qt_resource_struct = qt_resource_struct_v1
214+
else:
215+
rcc_version = 2
216+
qt_resource_struct = qt_resource_struct_v2
217+
218+
def qInitResources():
219+
QtCore.qRegisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
220+
221+
def qCleanupResources():
222+
QtCore.qUnregisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
223+
224+
qInitResources()

0 commit comments

Comments
 (0)