Changes

Jump to navigation Jump to search
m
Line 21: Line 21:  
     # Clicking one of the displayed buttons calls the choose method
 
     # Clicking one of the displayed buttons calls the choose method
   −
def choose(self, widget):
+
def choose(self, widget):
 
+
    chooser = ObjectChooser(parent=self, what_filter=mime.GENERIC_TYPE_AUDIO)
chooser = ObjectChooser(parent=self, what_filter=mime.GENERIC_TYPE_AUDIO)
+
    result = chooser.run()
result = chooser.run()
+
    if result == gtk.RESPONSE_ACCEPT:
if result == gtk.RESPONSE_ACCEPT:
+
      self.jobject = chooser.get_selected_object()
  self.jobject = chooser.get_selected_object()
+
      self.path = str(self.jobject.get_file_path())
  self.path = str(self.jobject.get_file_path())
+
    else:
else:
+
      self.jobject = None
  self.jobject = None
+
      self.path1 = "0"
  self.path1 = "0"
      
=== Random observations: ===
 
=== Random observations: ===

Navigation menu