Beispiel #1
0
 def partials(ctype):
     if not elements[ctype].get_active():
         return False
     return pany([
         elements[ctype + '-' + consumer].get_active()
         for consumer, _ in self._consumers
     ])
Beispiel #2
0
    def _verify(self):
        disk = self.disk.get_active()
        disk_audio = self.disk_audio.get_active()
        disk_video = self.disk_video.get_active()
        disk_audio_video = self.disk_audio_video.get_active()
        http = self.http.get_active()
        http_audio = self.http_audio.get_active()
        http_video = self.http_video.get_active()
        http_audio_video = self.http_audio_video.get_active()
        shout2 = self.shout2.get_active()
        shout2_audio = self.shout2_audio.get_active()
        shout2_video = self.shout2_video.get_active()
        shout2_audio_video = self.shout2_audio_video.get_active()

        blockNext = True
        if ((disk and pany([disk_audio, disk_video, disk_audio_video])) or
            (http and pany([http_audio, http_video, http_audio_video])) or
            (shout2 and pany([shout2_audio,
                              shout2_video, shout2_audio_video]))):
            blockNext = False
        self.wizard.blockNext(blockNext)
 def partials(ctype):
     if not elements[ctype].get_active():
         return False
     return pany([elements[ctype + "-" + consumer].get_active() for consumer, _ in self._consumers])