(self)
Update sequence data in DB according to Sequence Properties widget.
Update sequence data in DB according to Sequence Properties widget.
Update sequence data in DB according to Sequence Properties widget .
def update_shot(self):
        """
        Update sequence data in DB according to Sequence Properties widget.
        """

        print '>> Updating shot...'

        # Get shot
        shot = self.selected_shot

        # Modify shot data
        shot.start_frame = self.shot_properties_ui.shot_ui.linStartFrame.text()
        shot.end_frame = self.shot_properties_ui.shot_ui.linEndFrame.text()
        shot.width = self.shot_properties_ui.shot_ui.linWidth.text()
        shot.height = self.shot_properties_ui.shot_ui.linHeight.text()
        shot.description = self.shot_properties_ui.shot_ui.txtDescription.toPlainText()

        # Save shot data
        self.eve_data.update_shot(shot)

        print '>> Shot "{}" updated!'.format(shot.name)
def update_shot ( self ) : print '>> Updating shot...' # Get shot shot = self . selected_shot # Modify shot data shot . start_frame = self . shot_properties_ui . shot_ui . linStartFrame . text ( ) shot . end_frame = self . shot_properties_ui . shot_ui . linEndFrame . text ( ) shot . width = self . shot_properties_ui . shot_ui . linWidth . text ( ) shot . height = self . shot_properties_ui . shot_ui . linHeight . text ( ) shot . description = self . shot_properties_ui . shot_ui . txtDescription . toPlainText ( ) # Save shot data self . eve_data . update_shot ( shot ) print '>> Shot "{}" updated!' . format ( shot . name )