예제 #1
0
    def __init__(self, case_name, filenames):

        QtWidgets.QDialog.__init__(self)
        self.ui = Ui_Dialog_StartAndEndMarks()
        self.ui.setupUi(self)
        self.ui.label_case.setText(case_name)
        self.ui.label_files.setText("Files: " + str(filenames))
예제 #2
0
class DialogGetStartAndEndMarks(QtWidgets.QDialog):
    ''' This dialog gets the start and end mark text to allow file text to be
    automatically assigned to the currently selected case.
    It requires the name of the selected case and the filenames - for display purposes only.
    Methods return the user's choices for the startmark text and the endmark text.
    '''

    caseName = ""

    def __init__(self, case_name, filenames):

        QtWidgets.QDialog.__init__(self)
        self.ui = Ui_Dialog_StartAndEndMarks()
        self.ui.setupUi(self)
        self.ui.label_case.setText(case_name)
        self.ui.label_files.setText("Files: " + str(filenames))

    def get_start_mark(self):
        return str(self.ui.lineEdit_startmark.text())

    def get_end_mark(self):
        return str(self.ui.lineEdit_endmark.text())