(self)
When SEQUENCE selected in UI
When SEQUENCE selected in UI
When SEQUENCE selected in UI
def init_sequence(self):
        """
        When SEQUENCE selected in UI
        """

        # Show and set up PROPERTIES widget
        self.project_properties_ui.hide()
        self.asset_properties_ui.hide()
        self.sequence_properties_ui.show()
        self.shot_properties_ui.hide()

        # Setup data for sequence
        model_index = self.listSequences.currentIndex()
        sequence_id = model_index.data(QtCore.Qt.UserRole + 1)
        sequence = self.eve_data.get_sequence(sequence_id)
        self.selected_sequence = sequence
        # and shot
        self.eve_data.get_sequence_shots(sequence.id)
        self.model_shots = models.ListModel(self.eve_data.sequence_shots)
        self.listShots.setModel(self.model_shots)

        # Fill SEQUENCE WIDGET
        self.sequence_properties_ui.sequence_ui.linSequenceName.setEnabled(False)
        self.sequence_properties_ui.sequence_ui.linProjectName.setText(self.selected_project.name)
        self.sequence_properties_ui.sequence_ui.linSequenceName.setText(sequence.name)
        self.sequence_properties_ui.sequence_ui.txtDescription.setText(sequence.description)
def init_sequence ( self ) : # Show and set up PROPERTIES widget self . project_properties_ui . hide ( ) self . asset_properties_ui . hide ( ) self . sequence_properties_ui . show ( ) self . shot_properties_ui . hide ( ) # Setup data for sequence model_index = self . listSequences . currentIndex ( ) sequence_id = model_index . data ( QtCore . Qt . UserRole + 1 ) sequence = self . eve_data . get_sequence ( sequence_id ) self . selected_sequence = sequence # and shot self . eve_data . get_sequence_shots ( sequence . id ) self . model_shots = models . ListModel ( self . eve_data . sequence_shots ) self . listShots . setModel ( self . model_shots ) # Fill SEQUENCE WIDGET self . sequence_properties_ui . sequence_ui . linSequenceName . setEnabled ( False ) self . sequence_properties_ui . sequence_ui . linProjectName . setText ( self . selected_project . name ) self . sequence_properties_ui . sequence_ui . linSequenceName . setText ( sequence . name ) self . sequence_properties_ui . sequence_ui . txtDescription . setText ( sequence . description )