def choose_file(self): if not self.current_source: return url = self.current_source.get_url_from_chooser() if url: gobject.idle_add(self._delayed_play, url) # choose_file()