def create_color_producer(profile, gdk_color_str): mlt_color = utils.gdk_color_str_to_mlt_color_str(gdk_color_str) producer = mlt.Producer(profile, "colour", mlt_color) mltrefhold.hold_ref(producer) producer.gdk_color_str = gdk_color_str return producer
def create_mlt_producer(self, profile): mlt_color = utils.gdk_color_str_to_mlt_color_str(self.gdk_color_str) producer = mlt.Producer(profile, "colour", mlt_color) mltrefhold.hold_ref(producer) producer.gdk_color_str = self.gdk_color_str return producer