Beispiel #1
0
    def run(self):

        Gdk.threads_enter()
        dialog = dialogs.audio_sync_active_dialog()
        dialog.progress_bar.set_pulse_step(0.2)
        time.sleep(0.1)
        Gdk.threads_leave()

        while self.running:
            dialog.progress_bar.pulse()
            time.sleep(0.2)

        PROJECT().update_media_lengths_on_load = False

        Gdk.threads_enter()
        dialog.destroy()
        Gdk.threads_leave()
Beispiel #2
0
    def run(self):

        Gdk.threads_enter()
        dialog = dialogs.audio_sync_active_dialog()
        dialog.progress_bar.set_pulse_step(0.2)
        time.sleep(0.1)
        Gdk.threads_leave()

        while self.running:
            dialog.progress_bar.pulse()
            time.sleep(0.2)
                
        PROJECT().update_media_lengths_on_load = False
        
        Gdk.threads_enter()
        dialog.destroy()
        Gdk.threads_leave()