调整界面布局和样式
This commit is contained in:
parent
04867c9467
commit
d9749e42ee
|
@ -9,15 +9,19 @@ from PySide6.QtGui import QIcon
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
path = Path(__file__)
|
path = Path(__file__)
|
||||||
ui_file_patch = path.parent.parent / "images" / "bjx.png"
|
ico_file_patch = path.parent.parent / "images" / "bjx.png"
|
||||||
|
css_file_patch = path.parent.parent / "ui" / "style.qss"
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app = QApplication([])
|
app = QApplication([])
|
||||||
app.setStyle("Fusion")
|
app.setStyle("Fusion")
|
||||||
app.setWindowIcon(QIcon(str(ui_file_patch)))
|
app.setWindowIcon(QIcon(str(ico_file_patch)))
|
||||||
# 样式
|
# 样式
|
||||||
# print(QtWidgets.QStyleFactory.keys())
|
# print(QtWidgets.QStyleFactory.keys())
|
||||||
# print(app.style().name())
|
# print(app.style().name())
|
||||||
|
with open(css_file_patch,"r") as cssfile:
|
||||||
|
_style = cssfile.read()
|
||||||
|
app.setStyleSheet(_style)
|
||||||
win = Window()
|
win = Window()
|
||||||
win.ui.show()
|
win.ui.show()
|
||||||
sys.exit(app.exec())
|
sys.exit(app.exec())
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
*{
|
||||||
|
font-family: 宋体;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
#Log_Output{
|
||||||
|
margin: 10px 5px 5px 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#groupBox{
|
||||||
|
margin: 5px 5px 5px 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#filename_label{
|
||||||
|
margin: 5px 5px 10px 1px;
|
||||||
|
}
|
||||||
|
#output_label{
|
||||||
|
margin: 5px 5px 15px 2px;
|
||||||
|
}
|
||||||
|
#fileinit_label{
|
||||||
|
margin: 5px 5px 15px 2px;
|
||||||
|
}
|
||||||
|
#fileOutputText{
|
||||||
|
margin: 5px 5px 10px 2px;
|
||||||
|
}
|
||||||
|
#fileInitRowsText{
|
||||||
|
margin: 5px 5px 10px 2px;
|
||||||
|
}
|
||||||
|
#fileNameText{
|
||||||
|
margin: 5px 5px 5px 2px;
|
||||||
|
}
|
1140
ui/ui_main.ui
1140
ui/ui_main.ui
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue