Skip to content

Commit 16aa216

Browse files
committed
ignore
2 parents 8c7384b + abe5ffa commit 16aa216

File tree

6 files changed

+122
-71
lines changed

6 files changed

+122
-71
lines changed

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,4 @@ tmp
128128
.project
129129
.pydevproject
130130
.README.md.html
131-
README.md.html
131+
README.md.html

Diff for: .idea/.gitignore

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

Diff for: .idea/encodings.xml

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

Diff for: .idea/misc.xml

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

Diff for: .settings/org.eclipse.core.resources.prefs

-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ encoding//QTableView/CopyContent/CopyContent.py=utf-8
44
encoding//QTableView/CopyContent/__main__.py=utf-8
55
encoding//QTableWidget/SqlQuery/SqlQuery.py=utf-8
66
encoding//QTableWidget/SqlQuery/__main__.py=utf-8
7-
encoding//\u4E0B\u62C9\u6846/\u4E0B\u62C9\u9009\u62E9\u8054\u52A8/\u4E0B\u62C9\u9009\u62E9\u8054\u52A8.py=utf-8
87
encoding//\u5176\u5B83/C\u548CC++\u6269\u5C55/py\u8F6Cpyd/pydmod.py=utf-8
98
encoding//\u5176\u5B83/QRC\u8D44\u6E90\u6587\u4EF6\u4F7F\u7528/qrctest1.py=utf-8
109
encoding//\u5176\u5B83/QRC\u8D44\u6E90\u6587\u4EF6\u4F7F\u7528/qrctest2.py=utf-8
@@ -28,13 +27,6 @@ encoding//\u5176\u5B83/\u81EA\u5B9A\u4E49import/build.py=utf-8
2827
encoding//\u5176\u5B83/\u81EA\u5B9A\u4E49import/main.py=utf-8
2928
encoding//\u5176\u5B83/\u81EA\u5B9A\u4E49import/src/test.py=utf-8
3029
encoding//\u5176\u5B83/\u81EA\u5B9A\u4E49\u5C5E\u6027\u6D4B\u8BD5/\u81EA\u5B9A\u4E49\u5C5E\u6027\u6D4B\u8BD5.py=utf-8
31-
encoding//\u5217\u8868/QListView/\u663E\u793A\u81EA\u5B9A\u4E49Widget.py=utf-8
32-
encoding//\u5217\u8868/QListView/\u663E\u793A\u81EA\u5B9A\u4E49Widget\u5E76\u6392\u5E8F.py=utf-8
33-
encoding//\u5217\u8868/QListWidget/\u5220\u9664\u81EA\u5B9A\u4E49Item.py=utf-8
34-
encoding//\u5217\u8868/QListWidget/\u817E\u8BAF\u89C6\u9891\u70ED\u64AD\u5217\u8868/TencentMovieHotPlay.py=utf-8
35-
encoding//\u5217\u8868/QListWidget/\u817E\u8BAF\u89C6\u9891\u70ED\u64AD\u5217\u8868/TencentMovieHotPlay_Flow.py=utf-8
36-
encoding//\u5217\u8868/QListWidget/\u817E\u8BAF\u89C6\u9891\u70ED\u64AD\u5217\u8868/TencentMovieHotPlay_ListWidget.py=utf-8
37-
encoding//\u5217\u8868/QListWidget/\u81EA\u5B9A\u4E49\u53EF\u62D6\u62FDItem.py=utf-8
3830
encoding//\u52A8\u753B/\u53F3\u952E\u83DC\u5355\u52A8\u753B.py=utf-8
3931
encoding//\u52A8\u753B/\u591A\u9875\u9762\u5207\u6362\u52A8\u753B/SlidingStackedWidget.py=utf-8
4032
encoding//\u52A8\u753B/\u591A\u9875\u9762\u5207\u6362\u52A8\u753B/UiImageSlider.py=utf-8

Diff for: 美化/QWidget/QWidget样式测试.py

+61-61
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
3-
4-
'''
5-
Created on 2017年12月10日
6-
@author: Irony."[讽刺]
7-
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
8-
9-
@file: test
10-
@description:
11-
'''
12-
import sys
13-
14-
from PyQt5.QtCore import Qt
15-
from PyQt5.QtWidgets import QWidget, QApplication, QHBoxLayout
16-
17-
from CustomPaintWidget import CustomPaintWidget # @UnresolvedImport
18-
from CustomWidget import CustomWidget # @UnresolvedImport
19-
20-
21-
__Author__ = "By: Irony.\"[讽刺]\nQQ: 892768447\nEmail: [email protected]"
22-
__Copyright__ = "Copyright (c) 2017 Irony.\"[讽刺]"
23-
__Version__ = "Version 1.0"
24-
25-
26-
class TestWidget(QWidget):
27-
28-
def __init__(self, *args, **kwargs):
29-
super(TestWidget, self).__init__(*args, **kwargs)
30-
layout = QHBoxLayout(self)
31-
layout.addWidget(CustomPaintWidget(self))
32-
layout.addWidget(CustomWidget(self))
33-
#注意
34-
w = CustomWidget(self)
35-
w.setAttribute(Qt.WA_StyledBackground)#很重要
36-
layout.addWidget(w)
37-
38-
39-
if __name__ == "__main__":
40-
app = QApplication(sys.argv)
41-
app.setStyleSheet('''
42-
CustomPaintWidget {
43-
min-width: 100px;
44-
min-height: 100px;
45-
border: 1px solid green;
46-
border-radius: 20px;
47-
background: green;
48-
}
49-
CustomWidget {
50-
min-width: 200px;
51-
min-height: 200px;
52-
max-width: 200px;
53-
max-height: 200px;
54-
border: 1px solid orange;
55-
border-radius: 100px;
56-
background: orange;
57-
}
58-
''')
59-
w = TestWidget()
60-
w.show()
61-
sys.exit(app.exec_())
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
'''
5+
Created on 2017年12月10日
6+
@author: Irony."[讽刺]
7+
@site: http://alyl.vip, http://orzorz.vip, https://coding.net/u/892768447, https://github.com/892768447
8+
9+
@file: test
10+
@description:
11+
'''
12+
import sys
13+
14+
from PyQt5.QtCore import Qt
15+
from PyQt5.QtWidgets import QWidget, QApplication, QHBoxLayout
16+
17+
from CustomPaintWidget import CustomPaintWidget # @UnresolvedImport
18+
from CustomWidget import CustomWidget # @UnresolvedImport
19+
20+
21+
__Author__ = "By: Irony.\"[讽刺]\nQQ: 892768447\nEmail: [email protected]"
22+
__Copyright__ = "Copyright (c) 2017 Irony.\"[讽刺]"
23+
__Version__ = "Version 1.0"
24+
25+
26+
class TestWidget(QWidget):
27+
28+
def __init__(self, *args, **kwargs):
29+
super(TestWidget, self).__init__(*args, **kwargs)
30+
layout = QHBoxLayout(self)
31+
layout.addWidget(CustomPaintWidget(self))
32+
layout.addWidget(CustomWidget(self))
33+
#注意
34+
w = CustomWidget(self)
35+
w.setAttribute(Qt.WA_StyledBackground)#很重要
36+
layout.addWidget(w)
37+
38+
39+
if __name__ == "__main__":
40+
app = QApplication(sys.argv)
41+
app.setStyleSheet('''
42+
CustomPaintWidget {
43+
min-width: 100px;
44+
min-height: 100px;
45+
border: 1px solid green;
46+
border-radius: 20px;
47+
background: green;
48+
}
49+
CustomWidget {
50+
min-width: 200px;
51+
min-height: 200px;
52+
max-width: 200px;
53+
max-height: 200px;
54+
border: 1px solid orange;
55+
border-radius: 100px;
56+
background: orange;
57+
}
58+
''')
59+
w = TestWidget()
60+
w.show()
61+
sys.exit(app.exec_())

0 commit comments

Comments
 (0)