프로젝트

일반

사용자정보

개정판 94cc331f

ID94cc331f86131e09626816c6070d3667c1024846
상위 91654294
하위 57970579

함의성이(가) 약 6년 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)