def CollectValuesChanged( self ): ( namespaces, rating_service_keys, description ) = self._collect_comboctrl.GetValues() self._UpdateLabel() collect_unmatched = self._collect_unmatched.GetValue() self._media_collect = ClientMedia.MediaCollect( namespaces = namespaces, rating_service_keys = rating_service_keys, collect_unmatched = collect_unmatched ) self._BroadcastCollect()
def eventFilter(self, watched, event): if watched == self._collect_comboctrl: if event.type() == QC.QEvent.MouseButtonPress and event.button( ) == QC.Qt.MiddleButton: self.SetCollect( ClientMedia.MediaCollect(collect_unmatched=self. _media_collect.collect_unmatched)) return True return False