Logo Search packages:      
Sourcecode: viridian version File versions  Download package

def AmpacheTools::AmpacheGUI::AmpacheGUI::query_position (   self,
  data = None 
)

Threads.

Thread that updates the label and the seek/slider.

Definition at line 3208 of file AmpacheGUI.py.

                                         :
            """Thread that updates the label and the seek/slider."""
            self.time_seek_label.set_text(" ")
            new_time_nanoseconds = self.audio_engine.query_position()
            if new_time_nanoseconds != -1:
                  new_time_seconds = new_time_nanoseconds / 1000 / 1000 / 1000
                  new_time_human_readable = helperfunctions.convert_seconds_to_human_readable(new_time_seconds)
                  for signal in self.time_elapsed_signals:
                        self.time_elapsed_slider.handler_block(signal)
                  self.time_elapsed_slider.set_value(new_time_seconds)
                  for signal in self.time_elapsed_signals:
                        self.time_elapsed_slider.handler_unblock(signal)
                  self.time_elapsed_label.set_text(new_time_human_readable)
            return True
                  

Generated by  Doxygen 1.6.0   Back to index