-
Notifications
You must be signed in to change notification settings - Fork 0
/
resources.py
79 lines (69 loc) · 2.71 KB
/
resources.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.11.2)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x00\xfd\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x17\x00\x00\x00\x18\x08\x06\x00\x00\x00\x11\x7c\x66\x75\
\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\
\x04\x67\x41\x4d\x41\x00\x00\xb1\x8f\x0b\xfc\x61\x05\x00\x00\x00\
\x09\x70\x48\x59\x73\x00\x00\x0e\xc3\x00\x00\x0e\xc3\x01\xc7\x6f\
\xa8\x64\x00\x00\x00\x92\x49\x44\x41\x54\x48\x4b\xed\x95\xd1\x0a\
\x80\x20\x0c\x45\x5d\xff\xff\xcf\xd5\x8d\x26\x53\xa7\xd3\xa5\x3d\
\x79\x60\x54\xa0\x67\xee\x22\x44\xe7\x4d\x58\xc4\xf1\x3e\x97\xb0\
\xe5\x2a\x4d\x39\x11\x3d\xe5\x45\xbd\x2d\xb9\x30\x5f\x62\x35\xe4\
\xf5\x85\x9c\x37\x2a\x3d\xab\x60\x8f\xb6\x3e\x89\xc5\x23\x6e\x51\
\x64\x3e\x4b\x0c\xa2\xdc\xca\xd1\x43\x72\xf2\x99\xa7\x06\xcd\xab\
\x08\x30\x51\x5e\xbd\x98\x72\x4c\xc3\x13\xc9\xf7\x1e\x4c\xf9\x17\
\xfe\x93\xd7\xf2\x1c\xc9\x59\x12\xe5\x9c\x65\x2e\xe2\xef\x91\xac\
\x99\xe4\xe4\xb2\x01\x17\xf0\x88\x41\x91\x39\x44\x52\xe6\x15\x83\
\xfd\x0f\x55\x59\x28\x0f\xe1\x02\xaa\x09\x46\x23\x95\xa0\x90\x7c\
\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
"
qt_resource_name = b"\
\x00\x07\
\x07\x3b\xe0\xb3\
\x00\x70\
\x00\x6c\x00\x75\x00\x67\x00\x69\x00\x6e\x00\x73\
\x00\x0b\
\x06\x71\x8a\x02\
\x00\x67\
\x00\x72\x00\x69\x00\x70\x00\x5f\x00\x74\x00\x65\x00\x73\x00\x74\x00\x65\x00\x72\
\x00\x08\
\x0a\x61\x5a\xa7\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x2e\x00\x70\x00\x6e\x00\x67\
"
qt_resource_struct_v1 = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
\x00\x00\x00\x14\x00\x02\x00\x00\x00\x01\x00\x00\x00\x03\
\x00\x00\x00\x30\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
"
qt_resource_struct_v2 = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x14\x00\x02\x00\x00\x00\x01\x00\x00\x00\x03\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x30\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x01\x75\xdf\x6b\xad\xc7\
"
qt_version = [int(v) for v in QtCore.qVersion().split('.')]
if qt_version < [5, 8, 0]:
rcc_version = 1
qt_resource_struct = qt_resource_struct_v1
else:
rcc_version = 2
qt_resource_struct = qt_resource_struct_v2
def qInitResources():
QtCore.qRegisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
def qCleanupResources():
QtCore.qUnregisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
qInitResources()