개정판 94cc331f
issue #637: 0115
DTI_PID/DTI_PID/ItemPropertyTableWidget.py | ||
---|---|---|
684 | 684 |
self.mainWindow.graphicsView.command = cmd |
685 | 685 |
|
686 | 686 |
elif keyCell.text() == 'SetSpecs': |
687 |
from TrainingEditorDialog import QTrainingEditorDialog
|
|
687 |
from SpecBreakDialog import QSpecBreakDialog
|
|
688 | 688 |
|
689 | 689 |
try: |
690 |
dialog = QTrainingEditorDialog(self) |
|
690 |
dialog = QTrainingEditorDialog(self, items[0])
|
|
691 | 691 |
dialog.exec_() |
692 | 692 |
except Exception as ex: |
693 | 693 |
print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)) |
DTI_PID/DTI_PID/SpecBreakDialog.py | ||
---|---|---|
14 | 14 |
import SpecBreak_UI |
15 | 15 |
|
16 | 16 |
class QSpecBreakDialog(QDialog): |
17 |
def __init__(self, parent): |
|
17 |
def __init__(self, parent, specBreakItem):
|
|
18 | 18 |
QDialog.__init__(self, parent) |
19 | 19 |
|
20 | 20 |
self.ui = SpecBreak_UI.Ui_SpecBreak() |
21 | 21 |
self.ui.setupUi(self) |
22 | 22 |
|
23 |
self.specBreakItem = specBreakItem |
|
24 |
self.attrs = self.specBreakItem.attrs |
|
25 |
self.attrsKey = self.specBreakItem.attrs.keys() |
|
26 |
|
|
23 | 27 |
self.ui.tableWidgetSpec.setColumnCount(3) |
24 | 28 |
self.ui.tableWidgetSpec.setHorizontalHeaderLabels(['Attribute', 'UpStream', 'DownStream']) |
25 | 29 |
for index in range(self.ui.tableWidgetSpec.columnCount()): |
내보내기 Unified diff