Re: [Freevo-users] Re: adding menu events to remote

2005-03-08 Thread Jaap Struyk
Op di 08-03-2005, om 16:56 schreef Dirk Meyer:

> No (I think). What do you want to do?

Press the video button and the video menu opens ;-)

So I added in event.py:

MENU_EVENTS = {
'TV': MENU_TV,
'VIDEOS': MENU_VIDEOS,
'MUSIC' : MENU_MUSIC,
'PICTURES'  : MENU_PICTURES,
'GUIDE' : MENU_TV_GUIDE,
'RADIO' : MENU_RADIO
}

And on top of that file to the menu entry's:

MENU_TV = Event('TV')
MENU_VIDEOS = Event('VIDEO_PLAYER')
MENU_MUSIC  = Event('AUDIO_PLAYER')
MENU_PICTURES   = Event('IMAGE_PLAYER')
MENU_TV_GUIDE   = Event('TV_GUIDE')
MENU_RADIO  = Event('RADIO_PLAYER')

These entry's are also in my lircrc so pressing the video button gives
me a message that VIDEO_PLAYER has no eventhandler.
So I tryed:
MENU_VIDEOS = Event(plugin.activate('video'))
But in that case freevo doesn't even boot.
My best bet is that somewhere I have to add an eventhendler for the
plugin.activate function, but I can't see where.
-- 
Groetjes Japie



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] Re: adding menu events to remote

2005-03-08 Thread Dirk Meyer
Jaap Struyk wrote:
> Op vr 04-03-2005, om 13:29 schreef Dirk Meyer:
>
>> It's the mediamenu plugin and it is activated when the special media
>> directories are activated. E.g. plugin.activate('image') activate the
>> image mimetype plugin and that plugin activates the image menumenu.
>
> So I have to write a event_handler for every entry
> (video,audio,image,games) into mediamenu.py?

No (I think). What do you want to do?


Dischi

-- 
My mind not only wanders, sometimes it leaves completely.


pgp0hJ7Hzp6By.pgp
Description: PGP signature


Re: [Freevo-users] Re: adding menu events to remote

2005-03-04 Thread Jaap Struyk
Op vr 04-03-2005, om 13:29 schreef Dirk Meyer:

> It's the mediamenu plugin and it is activated when the special media
> directories are activated. E.g. plugin.activate('image') activate the
> image mimetype plugin and that plugin activates the image menumenu.

So I have to write a event_handler for every entry
(video,audio,image,games) into mediamenu.py?
-- 
Groetjes Japie



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] Re: adding menu events to remote

2005-03-04 Thread Dirk Meyer
Jaap Struyk wrote:
> Hello,
>
> Since my pvr150 remote has buttons for tv, audio etc. it would be great
> if pressing them would inmediatly open the desired menu entry.
> I digged trough the source, but can't find what calls the submenu's.
> Adding them to event.py doesn't look that hard, but I can't find out
> what's the system call for the (sub)menu's.

It's the mediamenu plugin and it is activated when the special media
directories are activated. E.g. plugin.activate('image') activate the
image mimetype plugin and that plugin activates the image menumenu.


Dischi

-- 
AIRPORTS: A place where people hurry up and wait.
   (Terry Pratchett, Wings)


pgpOewUBEz1tu.pgp
Description: PGP signature