[Rhythmbox-devel] RB.Source.add_to_queue() argument 1 must be rb.Source, not str
- From: Lachlan d <lachlan 00 gmail com>
- To: rhythmbox-devel gnome org
- Subject: [Rhythmbox-devel] RB.Source.add_to_queue() argument 1 must be rb.Source, not str
- Date: Fri, 8 Apr 2011 16:29:40 +1000
i'm stuck at add_to_queue(), i get the uri and then it tells me that's
wrong, how am i supposed to add to the play queue?
On the writing guide it just shows the URI and that's what i've given
it, but it doesn't want it as a string?
#ERROR:
shell.add_to_queue(location)
TypeError: RB.Source.add_to_queue() argument 1 must be rb.Source, not str
#CODE
def event_handler(self, shell, event, data=None):
if event.type != gtk.gdk.BUTTON_RELEASE or event.button != 2:
return False
source = shell.get_property("selected_page")
entry = rb.Source.get_entry_view(source)
selection = entry.get_selected_entries()
for items in selection:
location = items.get_playback_uri()
shell.add_to_queue(location)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]