개정판 7a6f35ae
issue #000: change ui
Change-Id: I413edf270da15ca06f01255a0bc488924b788891
DTI_PID/DTI_PID/StreamlineDialog.py | ||
---|---|---|
67 | 67 |
self.ui.toolButtonDelFromTo.clicked.connect(self.on_del_from_to) |
68 | 68 |
self.ui.pushButtonSaveFromTo.clicked.connect(self.on_save_from_to) |
69 | 69 |
|
70 |
self.ui.buttonBox.button(QDialogButtonBox.Ok).setIcon(QIcon(':/newPrefix/OK.svg')) |
|
71 |
self.ui.buttonBox.button(QDialogButtonBox.Cancel).setIcon(QIcon(':/newPrefix/Remove.svg'))
|
|
70 |
#self.ui.buttonBox.button(QDialogButtonBox.Ok).setIcon(QIcon(':/newPrefix/OK.svg'))
|
|
71 |
self.ui.buttonBox.button(QDialogButtonBox.Close).setIcon(QIcon(':/newPrefix/Remove.svg'))
|
|
72 | 72 |
|
73 | 73 |
def fill_hmb_data(self): |
74 | 74 |
"""load hmb data and fill table view""" |
DTI_PID/DTI_PID/UI/Streamline.ui | ||
---|---|---|
20 | 20 |
<enum>Qt::Horizontal</enum> |
21 | 21 |
</property> |
22 | 22 |
<property name="standardButtons"> |
23 |
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
23 |
<set>QDialogButtonBox::Close</set>
|
|
24 | 24 |
</property> |
25 | 25 |
</widget> |
26 | 26 |
</item> |
DTI_PID/DTI_PID/UI/Streamline_UI.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
|
3 |
# Form implementation generated from reading ui file '.\UI\Streamline.ui'
|
|
3 |
# Form implementation generated from reading ui file './UI/Streamline.ui'
|
|
4 | 4 |
# |
5 |
# Created by: PyQt5 UI code generator 5.13.1
|
|
5 |
# Created by: PyQt5 UI code generator 5.11.3
|
|
6 | 6 |
# |
7 | 7 |
# WARNING! All changes made in this file will be lost! |
8 | 8 |
|
9 |
|
|
10 | 9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
11 | 10 |
|
12 |
|
|
13 | 11 |
class Ui_StreamlineDialog(object): |
14 | 12 |
def setupUi(self, StreamlineDialog): |
15 | 13 |
StreamlineDialog.setObjectName("StreamlineDialog") |
... | ... | |
18 | 16 |
self.gridLayout_3.setObjectName("gridLayout_3") |
19 | 17 |
self.buttonBox = QtWidgets.QDialogButtonBox(StreamlineDialog) |
20 | 18 |
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
21 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
|
|
19 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close)
|
|
22 | 20 |
self.buttonBox.setObjectName("buttonBox") |
23 | 21 |
self.gridLayout_3.addWidget(self.buttonBox, 1, 0, 1, 1) |
24 | 22 |
self.gridLayout = QtWidgets.QGridLayout() |
... | ... | |
73 | 71 |
_translate = QtCore.QCoreApplication.translate |
74 | 72 |
StreamlineDialog.setWindowTitle(_translate("StreamlineDialog", "Streamline")) |
75 | 73 |
self.pushButtonSaveFromTo.setText(_translate("StreamlineDialog", "Save")) |
74 |
|
|
76 | 75 |
import MainWindow_rc |
76 |
|
|
77 |
if __name__ == "__main__": |
|
78 |
import sys |
|
79 |
app = QtWidgets.QApplication(sys.argv) |
|
80 |
StreamlineDialog = QtWidgets.QDialog() |
|
81 |
ui = Ui_StreamlineDialog() |
|
82 |
ui.setupUi(StreamlineDialog) |
|
83 |
StreamlineDialog.show() |
|
84 |
sys.exit(app.exec_()) |
|
85 |
|
내보내기 Unified diff