Skip to content

Commit d356665

Browse files
committed
整理
1 parent 305efd6 commit d356665

File tree

357 files changed

+238
-693
lines changed

Some content is hidden

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

357 files changed

+238
-693
lines changed
Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
eclipse.preferences.version=1
22
encoding//QListView/CustomWidgetSortItem.py=utf-8
33
encoding//QListView/SortItemByRole.py=utf-8
4+
encoding//QMessageBox/CustomColorIcon.py=utf-8
5+
encoding//QProgressBar/Lib/WaterRippleProgressBar.py=utf-8
6+
encoding//QProgressBar/MetroCircleProgress.py=utf-8
7+
encoding//QProgressBar/PercentProgressBar.py=utf-8
8+
encoding//QProgressBar/SimpleStyle.py=utf-8
9+
encoding//QProgressBar/WaterProgressBar.py=utf-8
410
encoding//QProxyStyle/Lib/TabBarStyle.py=utf-8
511
encoding//QProxyStyle/TabTextDirection.py=utf-8
12+
encoding//QPushButton/BottomLineProgress.py=utf-8
13+
encoding//QPushButton/FontRotate.py=utf-8
14+
encoding//QPushButton/NormalStyle.py=utf-8
15+
encoding//QScrollBar/StyleScrollBar.py=utf-8
16+
encoding//QSlider/PaintQSlider.py=utf-8
17+
encoding//QSlider/QssQSlider.py=utf-8
618
encoding//QSplitter/RewriteHandle.py=utf-8
719
encoding//QThread/moveToThread.py=utf-8
820
encoding//QTreeWidget/ParsingJson.py=utf-8
921
encoding//QWebView/DreamTree.py=utf-8
10-
encoding//\u7F8E\u5316/QProgressBar/Metro\u8FDB\u5EA6\u6761.py=utf-8
11-
encoding//\u7F8E\u5316/QProgressBar/\u6C34\u6CE2\u7EB9\u8FDB\u5EA6\u6761/ProgressBar.py=utf-8
12-
encoding//\u7F8E\u5316/QProgressBar/\u6C34\u6CE2\u7EB9\u8FDB\u5EA6\u6761/\u6C34\u6CE2\u7EB9\u8FDB\u5EA6\u6761.py=utf-8
13-
encoding//\u7F8E\u5316/QSlider/PaintQSlider.py=utf-8
14-
encoding//\u7F8E\u5316/QWidget/CustomPaintWidget.py=utf-8
15-
encoding//\u7F8E\u5316/QWidget/CustomWidget.py=utf-8
16-
encoding//\u7F8E\u5316/QWidget/QWidget\u6837\u5F0F\u6D4B\u8BD5.py=utf-8
22+
encoding//QWidget/Lib/CustomPaintWidget.py=utf-8
23+
encoding//QWidget/Lib/CustomWidget.py=utf-8
24+
encoding//QWidget/WidgetStyle.py=utf-8

QCalendarWidget/README.md

Lines changed: 2 additions & 0 deletions

QGraphicsDropShadowEffect/README.md

Lines changed: 4 additions & 3 deletions

QMessageBox/CustomColorIcon.py

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
'''
5+
Created on 2018年1月17日
6+
@author: Irony."[讽刺]
7+
@site: https://pyqt5.com , https://github.com/892768447
8+
9+
@file: CustomBtnIcon
10+
@description:
11+
'''
12+
13+
__Author__ = "By: Irony.\"[讽刺]\nQQ: 892768447\nEmail: [email protected]"
14+
__Copyright__ = "Copyright (c) 2018 Irony.\"[讽刺]"
15+
__Version__ = "Version 1.0"
16+
17+
import sys
18+
19+
from PyQt5.QtWidgets import QApplication, QMessageBox
20+
21+
22+
app = QApplication(sys.argv)
23+
app.setStyleSheet('''QDialogButtonBox {
24+
dialogbuttonbox-buttons-have-icons: 1;
25+
dialog-ok-icon: url(Data/icons/Ok.png);
26+
dialog-open-icon: url(Data/icons/Open.png);
27+
dialog-save-icon: url(Data/icons/Save.png);
28+
dialog-cancel-icon: url(Data/icons/Cancel.png);
29+
}
30+
31+
#qt_msgbox_label {
32+
color: red;
33+
background: green;
34+
}
35+
36+
#qt_msgboxex_icon_label {
37+
background: red;
38+
}
39+
40+
QMessageBox {
41+
background: black;
42+
messagebox-information-icon: url(Data/icons/Close.png);
43+
}
44+
45+
QMessageBox QPushButton {
46+
padding: 2px;
47+
border-radius: 5px;
48+
background: white;
49+
}
50+
51+
QMessageBox QPushButton:hover {
52+
background: darkCyan;
53+
}
54+
55+
QMessageBox QPushButton[text="Reset"] {
56+
background: red;
57+
}
58+
59+
QMessageBox QPushButton[text="Apply"] {
60+
background: cyan;
61+
qproperty-icon: url(Data/icons/Apply.png);
62+
}
63+
''')
64+
QMessageBox.information(None, "information", "消息",
65+
QMessageBox.Apply |
66+
QMessageBox.Cancel |
67+
QMessageBox.Close |
68+
QMessageBox.Discard |
69+
QMessageBox.Help |
70+
QMessageBox.No |
71+
QMessageBox.Ok |
72+
QMessageBox.Open |
73+
QMessageBox.Reset |
74+
QMessageBox.Save |
75+
QMessageBox.Yes)
76+
sys.exit()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)