[Rhythmbox-devel] How to import RBIRadioSource reference
- From: Jannik Heller <scrawl baseoftrash de>
- To: rhythmbox-devel gnome org
- Subject: [Rhythmbox-devel] How to import RBIRadioSource reference
- Date: Sun, 06 Dec 2009 15:15:41 +0100
Hi,
I want to get a reference to the "Radio" source in my plugin. I want to
use this code:
for group in shell.props.sourcelist_model:
for source in group.iterchildren():
for props in source:
if isinstance(props, RBIRadioSource):
radio_source = props
However, I get
NameError: global name 'RBIRadioSource' is not defined
So how to import the RBIRadioSource that I can access it? Or does
someone know another way to get the Radio source?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]