Skip to content

Commit 97909c3

Browse files
committed
update
1 parent 3dc4b85 commit 97909c3

File tree

92 files changed

+550
-1442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+550
-1442
lines changed

.idea/PyQt.iml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Animation/README.en.md

-1
This file was deleted.

QChart/BarStack.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'''
55
Created on 2017年12月28日
66
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
7+
@site: https://pyqt5.com https://github.com/892768447
88
99
@file: charts.bar.BarStack
1010
@description: like http://echarts.baidu.com/demo.html#bar-stack

QChart/LineStack.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'''
55
Created on 2017年12月28日
66
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
7+
@site: https://pyqt5.com https://github.com/892768447
88
99
@file: charts.line.LineStack
1010
@description: like http://echarts.baidu.com/demo.html#line-stack

QChart/ToolTip.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'''
55
Created on 2017年12月23日
66
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
7+
@site: https://pyqt5.com https://github.com/892768447
88
99
@file: ToolTip
1010
@description:

QChart/ToolTip2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'''
55
Created on 2017年12月23日
66
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
7+
@site: https://pyqt5.com https://github.com/892768447
88
99
@file: ToolTip2
1010
@description:

QComboBox/CityLinkage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
Created on 2018年1月27日
66
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
7+
@site: https://pyqt5.com https://github.com/892768447
88
99
@file: CityLinkage
1010
@description: 下拉联动

QFlowLayout/HotPlaylist.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'''
55
Created on 2018年2月4日
66
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
7+
@site: https://pyqt5.com https://github.com/892768447
88
99
@file: TencentMovieHotPlay_Flow
1010
@description:

图形视图/添加QWidget.py QGraphicsView/AddQWidget.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
'''
4+
"""
55
Created on 2017年12月23日
66
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
7+
@site: https://pyqt5.com https://github.com/892768447
88
9-
@file: 添加QWidget
9+
@file: AddQWidget
1010
@description:
11-
'''
11+
"""
1212
import sys
1313

1414
from PyQt5.QtCore import Qt

QGraphicsView/README.md

+16

QGraphicsView/ScreenShot/WorldMap.gif

460 KB

图形视图/世界地图/WorldMap.py QGraphicsView/WorldMap.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
'''
4+
"""
55
Created on 2017年12月17日
66
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
7+
@site: https://pyqt5.com https://github.com/892768447
88
99
@file: WorldMap
1010
@description:
11-
'''
11+
"""
1212
import json
1313
import math
1414

@@ -128,7 +128,7 @@ def scaleView(self, scaleFactor):
128128

129129
def initMap(self):
130130
features = json.load(
131-
open("world.json", encoding="utf8")).get("features")
131+
open("Data/world.json", encoding="utf8")).get("features")
132132
for feature in features:
133133
geometry = feature.get("geometry")
134134
if not geometry:

QGridLayout/HotPlaylist.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'''
55
Created on 2018年2月4日
66
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
7+
@site: https://pyqt5.com https://github.com/892768447
88
99
@file: TencentMovieHotPlay
1010
@description:

QLabel/ShowImage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'''
55
Created on 2017年12月23日
66
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
7+
@site: https://pyqt5.com https://github.com/892768447
88
99
@file: ShowImage
1010
@description:

QListWidget/HotPlaylist.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'''
55
Created on 2018年2月4日
66
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
7+
@site: https://pyqt5.com https://github.com/892768447
88
99
@file: TencentMovieHotPlay_ListWidget
1010
@description:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

QPropertyAnimation/README.en.md

+1

Animation/README.md QPropertyAnimation/README.md

+1-1
File renamed without changes.
File renamed without changes.

QWebEngineView/GetCookie.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'''
55
Created on 2017年12月10日
66
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
7+
@site: https://pyqt5.com https://github.com/892768447
88
99
@file: GetCookie
1010
@description:

QWebView/GetCookie.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'''
55
Created on 2017年12月10日
66
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
7+
@site: https://pyqt5.com https://github.com/892768447
88
99
@file: GetCookie
1010
@description:

README.md

+1-1
+44-44
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
3-
4-
'''
5-
Created on 2018年05月01日
6-
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
8-
9-
@file: qrctest1
10-
@description:
11-
'''
12-
13-
from PyQt5.QtGui import QPixmap
14-
from PyQt5.QtWidgets import QLabel
15-
16-
import res_rc # @UnusedImport @UnresolvedImport
17-
18-
19-
__Author__ = "By: Irony.\"[讽刺]\nQQ: 892768447\nEmail: [email protected]"
20-
__Copyright__ = "Copyright (c) 2017 Irony.\"[讽刺]"
21-
__Version__ = "Version 1.0"
22-
23-
24-
class ImageView(QLabel):
25-
26-
def __init__(self, *args, **kwargs):
27-
super(ImageView, self).__init__(*args, **kwargs)
28-
self.resize(800, 600)
29-
30-
# 从资源文件res_rc.py中加载
31-
# 转换命令pyrcc5 res.qrc -o res_rc.py
32-
# 这种方式是从通过pyrcc5转换res.qrc为res_rc.py文件,可以直接import加载
33-
# 此时可以通过路径:/images/head.jpg来访问
34-
self.setPixmap(QPixmap(":/images/head.jpg"))
35-
36-
37-
if __name__ == "__main__":
38-
import sys
39-
from PyQt5.QtWidgets import QApplication
40-
app = QApplication(sys.argv)
41-
app.aboutToQuit.connect(res_rc.qCleanupResources) # 退出时要清理资源
42-
w = ImageView()
43-
w.show()
44-
sys.exit(app.exec_())
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
'''
5+
Created on 2018年05月01日
6+
@author: Irony."[讽刺]
7+
@site: https://pyqt5.com https://github.com/892768447
8+
9+
@file: qrctest1
10+
@description:
11+
'''
12+
13+
from PyQt5.QtGui import QPixmap
14+
from PyQt5.QtWidgets import QLabel
15+
16+
import res_rc # @UnusedImport @UnresolvedImport
17+
18+
19+
__Author__ = "By: Irony.\"[讽刺]\nQQ: 892768447\nEmail: [email protected]"
20+
__Copyright__ = "Copyright (c) 2017 Irony.\"[讽刺]"
21+
__Version__ = "Version 1.0"
22+
23+
24+
class ImageView(QLabel):
25+
26+
def __init__(self, *args, **kwargs):
27+
super(ImageView, self).__init__(*args, **kwargs)
28+
self.resize(800, 600)
29+
30+
# 从资源文件res_rc.py中加载
31+
# 转换命令pyrcc5 res.qrc -o res_rc.py
32+
# 这种方式是从通过pyrcc5转换res.qrc为res_rc.py文件,可以直接import加载
33+
# 此时可以通过路径:/images/head.jpg来访问
34+
self.setPixmap(QPixmap(":/images/head.jpg"))
35+
36+
37+
if __name__ == "__main__":
38+
import sys
39+
from PyQt5.QtWidgets import QApplication
40+
app = QApplication(sys.argv)
41+
app.aboutToQuit.connect(res_rc.qCleanupResources) # 退出时要清理资源
42+
w = ImageView()
43+
w.show()
44+
sys.exit(app.exec_())
+44-44
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
3-
4-
'''
5-
Created on 2018年05月01日
6-
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
8-
9-
@file: qrctest2
10-
@description:
11-
'''
12-
13-
14-
from PyQt5.QtCore import QResource
15-
from PyQt5.QtGui import QPixmap
16-
from PyQt5.QtWidgets import QLabel
17-
18-
19-
__Author__ = "By: Irony.\"[讽刺]\nQQ: 892768447\nEmail: [email protected]"
20-
__Copyright__ = "Copyright (c) 2017 Irony.\"[讽刺]"
21-
__Version__ = "Version 1.0"
22-
23-
24-
class ImageView(QLabel):
25-
26-
def __init__(self, *args, **kwargs):
27-
super(ImageView, self).__init__(*args, **kwargs)
28-
self.resize(800, 600)
29-
self.setPixmap(QPixmap(":/images/head.jpg"))
30-
31-
32-
if __name__ == "__main__":
33-
import sys
34-
from PyQt5.QtWidgets import QApplication
35-
app = QApplication(sys.argv)
36-
# 从二进制资源文件res.data中加载
37-
# 转换命令cd tools
38-
# rcc.exe -binary ../res.qrc -o ../res.data
39-
# 此时需要注册
40-
QResource.registerResource("res.data")
41-
app.aboutToQuit.connect(lambda: QResource.unregisterResource("res.data"))
42-
w = ImageView()
43-
w.show()
44-
sys.exit(app.exec_())
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
'''
5+
Created on 2018年05月01日
6+
@author: Irony."[讽刺]
7+
@site: https://pyqt5.com https://github.com/892768447
8+
9+
@file: qrctest2
10+
@description:
11+
'''
12+
13+
14+
from PyQt5.QtCore import QResource
15+
from PyQt5.QtGui import QPixmap
16+
from PyQt5.QtWidgets import QLabel
17+
18+
19+
__Author__ = "By: Irony.\"[讽刺]\nQQ: 892768447\nEmail: [email protected]"
20+
__Copyright__ = "Copyright (c) 2017 Irony.\"[讽刺]"
21+
__Version__ = "Version 1.0"
22+
23+
24+
class ImageView(QLabel):
25+
26+
def __init__(self, *args, **kwargs):
27+
super(ImageView, self).__init__(*args, **kwargs)
28+
self.resize(800, 600)
29+
self.setPixmap(QPixmap(":/images/head.jpg"))
30+
31+
32+
if __name__ == "__main__":
33+
import sys
34+
from PyQt5.QtWidgets import QApplication
35+
app = QApplication(sys.argv)
36+
# 从二进制资源文件res.data中加载
37+
# 转换命令cd tools
38+
# rcc.exe -binary ../res.qrc -o ../res.data
39+
# 此时需要注册
40+
QResource.registerResource("res.data")
41+
app.aboutToQuit.connect(lambda: QResource.unregisterResource("res.data"))
42+
w = ImageView()
43+
w.show()
44+
sys.exit(app.exec_())

0 commit comments

Comments
 (0)