Re: [Freevo-users] mplayer problem

2005-02-14 Thread mplayer
I found I had to add a -vc argument. yours will be different, but I had to use -vc ffmpeg12mc to use xvmc to play TV. Rande mplayer plays movie and audio files just fine but doesn't seem to be able to get input from my TV tuner card.  (This is the last thing I need to finish before fi

Re: [Freevo-users] Help writing plugin.

2005-02-12 Thread mplayer
you just need to create a new menu object, and call the pushmenu function - when the pushmenu function is called, you will enter that menu. eg, if you do menuw.pushmenu(ha_menu) menuw.pushmenu(ha_menu) menuw.pushmenu(ha_menu) then you will go down 3 levels of menus (admitted the _same_ menu), and

Re: [Freevo-users] Help writing plugin.

2005-02-12 Thread mplayer
you are returning the function result rather than the function itself. try encapsulating it in a lamda. Rande Another problem I'm having is that the following code: ha_menu_items+=[menu.MenuItem(control[0],os.system(control[1]))] executes the "os,system(control[1])" when the menu loads, not

Re: [Freevo-users] Help writing plugin.

2005-02-12 Thread mplayer
My first idea is that MenuItem needs to return a function that builds a new Item. You might need to create a blank Item class (no functions) and then dynamically create those functions using the lamda operator. That's the most extensible.  Or you could just have 3 Item subclasses, which would be l

Re: [Freevo-users] Help writing plugin.

2005-02-10 Thread mplayer
I think it might be easier to parse by doing it this way (tabbed for clarity, won't compile this way) HA_ITEMS = [                   ("Living Room",                                 (                                         ("Corner Light", ("On","Off","Dim")),                                    

Re: [Freevo-users] Help writing plugin.

2005-02-10 Thread mplayer
typo there - menuw.pushmenu(radio_ha) should be - menuw.pushmenu(ha_menu) Here's what I now have, but I'm still haing trouble, lots of trouble.   I'm having trouble grasping the way python works, and my local B&N has no books on python. ---

Re: [Freevo-users] Help writing plugin.

2005-02-10 Thread mplayer
Ryan, within your mainMenu item, you'll need something like the below (chopped from my shoutcast plugin - see the dev archives for a full copy). It's all to do with the actions function.  here you can choose whether to create another submenu or to actually do something. def actions(self):      

Re: [Freevo-users] Re: Anyone into interface design?

2004-12-01 Thread mplayer
Actually, I find freevo's interface pretty good.   It's clean, it's simple and I never have any trouble finding what I want. As to modesum, ok, it's all very nice complaining about modes, but without suggestions as to how it could be done better, it's of no use at all. (to introduce the stra