[Rhythmbox-devel] checking an object type in Rhythmbox
- From: Ron Croonenberg <ronc depauw edu>
- To: rhythmbox-devel gnome org
- Subject: [Rhythmbox-devel] checking an object type in Rhythmbox
- Date: Sat, 02 Jan 2010 20:09:31 -0500
Hello,
I am trying to write a plugin for Rhythmbox and want to check if an
object I have is of a certain type
what I want to do is something like:
if type(source) == type(something.RBPlayQueueSource):
if I do a "print type(SOURCE)", print shows me the string
"browse.__main__.RBPlayQueueSource".
I am wondering what class '__main__' is an instance of.
or is there a better way to do this?
thanks,
Ron
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]