mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-04 16:31:17 -05:00
Add python3 support
This commit is contained in:
parent
c58336977d
commit
21b91c9f9b
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@
|
||||
/dist/
|
||||
/QDarkStyle.egg-info/
|
||||
/build/
|
||||
__pycache__
|
||||
|
@ -42,9 +42,9 @@ def load_stylesheet(pyside=True):
|
||||
cwd = os.path.dirname(os.path.realpath(__file__))
|
||||
# Smart import of the rc file
|
||||
if pyside:
|
||||
import pyside_style_rc
|
||||
import qdarkstyle.pyside_style_rc
|
||||
else:
|
||||
import pyqt_style_rc
|
||||
import qdarkstyle.pyqt_style_rc
|
||||
|
||||
# Load the stylesheet content
|
||||
ret_val = ""
|
||||
|
@ -43,9 +43,9 @@ def compile_all():
|
||||
print("Compiling for Qt: style.qrc -> style.rcc")
|
||||
os.system("rcc style.qrc -o style.rcc")
|
||||
print("Compiling for PyQt4: style.qrc -> pyqt_style_rc.py")
|
||||
os.system("pyrcc4 style.qrc -o pyqt_style_rc.py")
|
||||
os.system("pyrcc4 -py3 style.qrc -o pyqt_style_rc.py")
|
||||
print("Compiling for PySide: style.qrc -> pyside_style_rc.py")
|
||||
os.system("pyside-rcc style.qrc -o pyside_style_rc.py")
|
||||
os.system("pyside-rcc -py3 style.qrc -o pyside_style_rc.py")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
@ -2,14 +2,14 @@
|
||||
|
||||
# Resource object code
|
||||
#
|
||||
# Created: Sun Mar 10 16:49:56 2013
|
||||
# by: The Resource Compiler for PyQt (Qt v4.8.2)
|
||||
# Created: Do. Jan 2 16:04:19 2014
|
||||
# by: The Resource Compiler for PyQt (Qt v4.8.4)
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt4 import QtCore
|
||||
|
||||
qt_resource_data = "\
|
||||
qt_resource_data = b"\
|
||||
\x00\x00\x00\x96\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
@ -394,7 +394,7 @@ qt_resource_data = "\
|
||||
\x4e\x44\xae\x42\x60\x82\
|
||||
"
|
||||
|
||||
qt_resource_name = "\
|
||||
qt_resource_name = b"\
|
||||
\x00\x09\
|
||||
\x09\x5f\x97\x13\
|
||||
\x00\x71\
|
||||
@ -513,7 +513,7 @@ qt_resource_name = "\
|
||||
\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x62\x00\x6f\x00\x78\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
"
|
||||
|
||||
qt_resource_struct = "\
|
||||
qt_resource_struct = 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\x18\x00\x02\x00\x00\x00\x18\x00\x00\x00\x03\
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user