Re: [Freevo-devel] Problem with events in a DaemonPlugin

2007-02-01 Thread Gorka Olaizola
On Wed, Jan 31, 2007 at 10:53:28PM +0100, Gorka Olaizola wrote: > > Is there a way of debugging python with a debugger? > Yes, there is :-) python -m pdb /usr/bin/freevo I have found that the responsible for the duplicate event is the line 285 of main.py that calls app.eventhandler(event). a

Re: [Freevo-devel] Problem with events in a DaemonPlugin

2007-01-31 Thread Gorka Olaizola
On Wed, Jan 31, 2007 at 08:27:56PM +0100, Duncan Webb wrote: > > > > freevused.py (301): Saw PLUGIN_EVENT IDENTIFY_MEDIA None > > freevoscreensaver.py (102): Saver saw PLUGIN_EVENT IDENTIFY_MEDIA > > mplayer_aspectratio.py (134): Saw PLUGIN_EVENT IDENTIFY_MEDIA > > > > freevused.py (301): Saw PLU

Re: [Freevo-devel] Problem with events in a DaemonPlugin

2007-01-31 Thread Duncan Webb
Gorka Olaizola wrote: > Does anyone recognize the names top=0 left=0? > > They get printed in the duplicated event if I do > > print 'Saw %s %s' % (event, menuw) > > from the freevused eventhandler(self, event, menuw=None) function > > I think is quite strange and I think is not my fault beca

Re: [Freevo-devel] Problem with events in a DaemonPlugin

2007-01-31 Thread Gorka Olaizola
Does anyone recognize the names top=0 left=0? They get printed in the duplicated event if I do print 'Saw %s %s' % (event, menuw) from the freevused eventhandler(self, event, menuw=None) function I think is quite strange and I think is not my fault because the screen saver plugin is getting d

[Freevo-devel] Problem with events in a DaemonPlugin

2007-01-30 Thread Gorka Olaizola
Hello, I'm adding some cool features to the Bluetooth control plugin freevused.py and I have found an annoying behaviour. If I set self.event_listener = False The plugin can't see events like PLAY_STOP or STOP that I use to set a variable to know if an item is playing. I I set self.eve