Gustavo Sverzut Barbieri wrote:
>  --- Dirk Meyer <[EMAIL PROTECTED]> escreveu: > Gustavo Sverzut Barbieri
> wrote:
>> > Dischi,
>> >
>> > Remeber about the LCD plugin I was trying to wrote?
>> > I tried what you said: using a DaemonPlugin and implementing the
>> > draw()... but where/how I get the menu?! That function receives a
>> > tuple: (type,object) which I have *NO IDEA* how I use!
>> >
>> > Could you give me some examples? No existent plugin use that.
>> 
>> Oops, sorry. These is the same tuple the draw() function in the skin
>> gets. Look at skin_main1 as example. 
>> 
>> type: 'tv', 'player' or 'menu'
>> object, based on type: tv menu, playing item or menuw
>>
>
> No... it's not the same.
> If I use something like:
>    if type == 'menu': print "This is a menu"
>    else: print "No menu. It's '%s'" % type
> In my plugin, I always get:
>     No menu, it's '<type 'type'>'
>
> Also, print "type=%s   object=%s" % ( type, object )
> prints: type=<type 'type'>  object=<type 'object'>

Fixed

Dischi

-- 
Smash forehead on keyboard to continue.....


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to