[Freevo-devel] how to define a key combination in freevo?

2004-02-01 Thread GuoJunli
hi,
 I really want to know how to define a key combination in freevo,
for example,how to use ALT+CTRL+k in freevo.
 Any suggestion will help me ,thanks .



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Re: Collection of useful patches and plugins

2004-02-01 Thread Rob Shortt
Hi, I finally had a chance to look at these.

Dirk Meyer wrote:
** freevo-irremote.diff - breaks out irremote support out of rc.py and
puts it into a plugin of its own. Has nice side effect of allowing
repeated commands to be received by freevo consistently. Previously
repeated commands sent via LIRC would be processed very sporadically.
Currently breaks network remote control - If time permits I plan to put
this into a similar plugin in the future.
I like the looks of this and it makes a lot of sense to have the 
different remote controls as plugins.  I will look at this closer and 
perhaps make a network remote plugin so that we don't break it.

** freevo-ivtv_mencoder_record.diff - I was having trouble with the
default recording plugin dying for the IVTV cards. I modified the
existing plugin to use mencoder instead of simply reading directly from
the video device for a set time. Allows you to save to raw mpeg file
dumps generated via the TV card or re-encode real-time to avi if your pc
if fast enough. Could be modified in the future to allow selection of
record quality.
I don't want to apply this one because this can be done just as easily 
using tv.generic_record and VCR_CMD.  If there are problems with how 
this plugin does the recording I would like to hear about it.

** freevo-joystick.diff - modified to allow binding of commands to
multiple axis and to allow simultaneous use of joystick in freevo and
the games freevo supports.
I am not setup at the moment to test the joystick plugin but this looks 
good.  Can someone else who uses the joystick plugin try it?  I have 
reattached the file.

-Rob
diff -ur --new-file freevo-1.4.1-new/src/games/game.py freevo-1.4.1/src/games/game.py
--- freevo-1.4.1-new/src/games/game.py  2003-12-14 18:22:30.0 -0500
+++ freevo-1.4.1/src/games/game.py  2003-10-22 20:30:42.0 -0400
@@ -171,16 +175,24 @@
 if DEBUG:
 print 'Game_Thread.run(): Started, cmd=%s' % self.command
 
-osd.stopdisplay() 
+osd.stopdisplay()
+
+if plugin.is_active('joy'):
+plugin.getbyname('JOY').enable(False)
+
 self.app = GameApp(self.command)
 
 while self.mode == 'play' and self.app.isAlive():
 time.sleep(0.5)
 
-print('Game_Thread::run: GAME OVER')
+if DEBUG:
+print('Game_Thread::run: GAME OVER')
 
 self.app.kill()
 
+if plugin.is_active('joy'):
+plugin.getbyname('JOY').enable(True)
+
 if config.OSD_SDL_EXEC_AFTER_STARTUP:
 os.system(config.OSD_SDL_EXEC_AFTER_STARTUP)
 
diff -ur --new-file freevo-1.4.1-new/src/plugins/joy.py freevo-1.4.1/src/plugins/joy.py
--- freevo-1.4.1-new/src/plugins/joy.py 2003-12-19 04:24:32.0 -0500
+++ freevo-1.4.1/src/plugins/joy.py 2003-10-04 14:37:29.0 -0400
@@ -2,15 +2,44 @@
 # ---
 # joy.py - A joystick control plugin for Freevo.
 # ---
-# $Id: joy.py,v 1.10 2003/10/04 18:37:29 dischi Exp $
+# $Id: joy.py,v 1.11 2003/12/06 23:20:29 kareejb Exp $
 #
 # Notes:
-# To use this plugin make sure that your joystick is already working 
+# To use this plugin make sure that your joystick is already working
 # properly and then configure JOY_DEV and JOY_CMDS in your local_conf.py.
 # You will also need to have plugin.activate('joy') in your config as well.
 #
 # ---
 # $Log: joy.py,v $
+#
+# Revision 1.11  2003/12/06 23:20:29  kareejb
+# Modified to allow binding of different axis to freevo events and
+# to allow plugin to coexist with freevo games that also use the joystick.
+# ie:
+#
+# 
+# JOY_CMDS = {
+# 'axis 1 neg' : 'UP',
+# 'axis 1 pos' : 'DOWN',
+# 'axis 0 neg' : 'LEFT',
+# 'axis 0 pos' : 'RIGHT',
+# 'axis 6 neg' : 'UP',
+# 'axis 6 pos' : 'DOWN',
+# 'axis 5 neg' : 'LEFT',
+# 'axis 5 pos' : 'RIGHT',
+# 'button 1'   : 'SELECT',
+# 'button 4'   : 'EXIT',
+# 'button 7'   : 'SELECT',
+# 'button 10'  : 'EXIT',
+# 'button 2'   : 'PAUSE',
+# 'button 6'   : 'DISPLAY',
+# 'button 3'   : 'ENTER',
+# 'button 8'   : 'DISPLAY',
+# 'button 11'  : 'ENTER',
+# 'button 6'   : 'MENU'
+# }
+# 
+#
 # Revision 1.10  2003/10/04 18:37:29  dischi
 # i18n changes and True/False usage
 #
@@ -49,6 +78,7 @@
 import struct
 import traceback
 from time import sleep
+from time import time
 
 import config
 import plugin
@@ -66,7 +96,8 @@
 # If we make it to the end of __init__ successfully then
 # poll_interval is set to run ok.
 self.poll_interval = 0
- 
+self.enabled = 

[Freevo-wikilog] [Freevo Wiki] Update of "FreevoRoadmap"

2004-02-01 Thread freevo-wikilog
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change 
notification.

The following page has been changed by 80.212.145.168:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/FreevoRoadmap

--
@@ -1,6 +1,6 @@
 #pragma section-numbers off
 
- ||User wishlist|| 
+== User wishlist ==
 
 Directv Serial Control... Like -> http://www.pcmx.net/dtvcon/  -Ethan
 


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog


Using Mythtv as TV plugin Was: Re: [Freevo-devel] Smallest mainmenu plugin to start"outside"application

2004-02-01 Thread Robert Rozman
Hi,

Mike mentioned that someone on Freevo's IRC was working (with Dischi) on tv
plugin for Mythtv under Freevo.
Does anyone have any more info on this ?

Thanks,

Robert.

- Original Message -
From: "Michael Ruelle" <[EMAIL PROTECTED]>
To: "FreevoDevel" <[EMAIL PROTECTED]>
Sent: Sunday, February 01, 2004 7:13 PM
Subject: Re: [Freevo-devel] Smallest mainmenu plugin to
start"outside"application
>
> As for your application problem. Try running a few different apps, to
> see if this is application specific. I have tested with MozillaFirebird,
> RealPlayer, and a few other apps. I have never tested with MythTv(It
> freezes my machine hard and i have to manually reset) although someone
> has made a plugin to use mythtv as the tv app for freevo. he was on irc
> working with dischi a few weeks ago.
>
> --
> Mike Ruelle
> [EMAIL PROTECTED]
> http://world.std.com/~mruelle/
>
> On Sun, 2004-02-01 at 09:05, Robert Rozman wrote:
> > Hi,
> >
> > I've tried that and it works (great - I thought of this and you created
> > plugin some days ago - I wish that could happen each time I have
desire
> > :-) )..
> >
> >  I'd just ned to do something useful with spawnwm and killwm (I start
mythtv
> > with that and when it finishes I get blank screen).
> >
> > Could you give us some more info on meaning of parameters in Mozilla.fxd
?
> >
> > Thanks in advance,
> >
> > regards,
> >
> > Robert.
> >
> > - Original Message -
> > From: "Michael Ruelle" <[EMAIL PROTECTED]>
> > To: "FreevoDevel" <[EMAIL PROTECTED]>
> > Sent: Sunday, February 01, 2004 1:55 AM
> > Subject: Re: [Freevo-devel] Smallest mainmenu plugin to start
> > "outside"application
> >
> >
> > > I have made a plugin in cvs to do this with the commandmmitem.py
plugin.
> > > It uses the fxd file format that is new in cvs for command.py. There
is
> > > an example fxd in my WIP.
> > >
> > > --
> > > Mike Ruelle
> > > [EMAIL PROTECTED]
> > > http://world.std.com/~mruelle/
> > >
> > > On Sat, 2004-01-31 at 19:35, Robert Rozman wrote:
> > > > Hi,
> > > >
> > > > I'd like to run external application from mainmenu in Freevo. I
wonder
> > what
> > > > would minimal mainmenu plugin for this be ? Any example, code ?
> > > >
> > > > Regards,
> > > >
> > > > Robert.
>
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> Freevo-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freevo-devel



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-wikilog] [Freevo Wiki] Update of "RecordingInfo"

2004-02-01 Thread freevo-wikilog
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change 
notification.

The following page has been changed by 24.128.246.209:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/RecordingInfo

--
@@ -23,7 +23,30 @@
 
 Or to change the VCR_CMD to include a 'soundonscript ;' + at thefront of the command 
and a '; soundoffscript' at the end.
 
-(show example.)
+{{{
+VCR_CMD = ('/usr/share/freevo/unmute 50; '+
+CONF.mencoder + ' ' +
+   'tv:// ' +  # New mplayer requires this.
+   '-tv driver=%s:input=%d' % (TV_DRIVER, TV_INPUT) +
+   ':norm=%s' % CONF.tv +
+   ':channel=%(channel)s' +# Filled in by Freevo
+   ':chanlist=%s' % CONF.chanlist +
+   ':width=%d:height=%d' % (TV_REC_SIZE[0], TV_REC_SIZE[1]) +
+   ':outfmt=%s' % TV_REC_OUTFMT +
+   ':device=%s' % TV_DEVICE +
+VCR_AUDIO +# set above
+   ' -ovc lavc -lavcopts ' +   # Mencoder lavcodec video codec
+   'vcodec=mpeg4' +# lavcodec mpeg-4
+   ':vbitrate=2000:' + # Change lower/higher, bitrate
+   'keyint=30 ' +  # Keyframe every 10 secs, change?
+   '-oac mp3lame -lameopts ' + # Use Lame for MP3 encoding, must be 
enabled in mencoder!
+   'br=128:cbr:mode=3 ' +  # MP3 const. bitrate, 128 kbit/s
+   '-ffourcc divx ' +  # Force 'divx' ident, better compat.
+   '-endpos %(seconds)s ' +# only mencoder uses this so do it here.
+   '-o %(filename)s.avi ' +# Filled in by Freevo
+   '; /usr/share/freevo/mute;')
+
+}}}
 
 '''IVTV setup:'''
 


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog


[Freevo-wikilog] [Freevo Wiki] Update of "RecordingInfo"

2004-02-01 Thread freevo-wikilog
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change 
notification.

The following page has been changed by 24.128.246.209:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/RecordingInfo

--
@@ -7,7 +7,7 @@
 
 This process using the sound from btaudio kernel module and the pictures from your 
bttv module. This is the preffered freevo setup for recording and the default settings 
in VCR_CMD reflect this.
 
-This setup is problematic though since not all cards support btaudio and some cards 
only thought to work in certain configurations. Btaudio setup is its own topic and 
help can be found here.
+This setup is problematic though since not all cards support btaudio and some cards 
only thought to work in certain configurations. Btaudio setup is its own topic and 
help can be found 
[http://freevo.sourceforge.net/cgi-bin/moin.cgi/FrequentlyAskedQuestions#head-3fb8a33780b7fb2bef3edff84757d03e96461031
 here].
 
 Once you have that setup you can change the default VCR_CMD's adevice to point to it.
 
@@ -19,8 +19,7 @@
 
 It has a couple inherit problems. First you will here the program in the background 
when you are recording. And Second, You cannot run any apps that use the soundcard 
while recording(which pretty rules out everything except images and maybe running some 
scripts in commands plugin).
 
-To accomplish this setup you have to change the adevice in VCR_CMD to /dev/dsp. Then 
you need to change you vcr_cmd to either a script setup similar to one here.
-(link to cvs contrib dir).
+To accomplish this setup you have to change the adevice in VCR_CMD to /dev/dsp. Then 
you need to change you vcr_cmd to either a script setup similar to one 
[http://cvs.sourceforge.net/viewcvs.py/freevo/freevo/contrib/record_without_btaudio/ 
here].
 
 Or to change the VCR_CMD to include a 'soundonscript ;' + at thefront of the command 
and a '; soundoffscript' at the end.
 


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog


[Freevo-wikilog] [Freevo Wiki] Update of "RecordingInfo"

2004-02-01 Thread freevo-wikilog
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change 
notification.

The following page has been changed by 24.128.246.209:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/RecordingInfo

--
@@ -1,7 +1,9 @@
+'''Intro'''
+
 There are three different types of Freevo Recording. Tv LineIn, Btuadio and ivtv. The 
first two depend on using the bttv module for your tv card. The third is for use only 
with the ivtv module for the wintv PVR type cards.
 
 
-Btaudio:
+'''Btaudio:'''
 
 This process using the sound from btaudio kernel module and the pictures from your 
bttv module. This is the preffered freevo setup for recording and the default settings 
in VCR_CMD reflect this.
 
@@ -11,7 +13,7 @@
 
 This is also the best setup for doing timeshifting, thus it is reccomended to really 
try hard to get this setup to work for you.
 
-TV LineIn:
+'''TV LineIn:'''
 
 This process using the line out sound from your tv card into the line in of your 
sound car for the sound and bttv for your pictures. This is a common bttv setup.
 
@@ -24,7 +26,37 @@
 
 (show example.)
 
-IVTV setup:
+'''IVTV setup:'''
+
+In order to use the ivtv recording plugin have the following in your local_conf.py:
+
+{{{
+plugin.remove('tv.generic_record')
+plugin_record = plugin.activate('tv.ivtv_record')
+}}}
+
+Also for ivtv_record you may set some recording options:
+
+{{{
+IVTV_OPTIONS = {
+'input' : 4,
+'resolution': '720x480',
+'aspect': 2,
+'audio_bitmask' : 233,
+'bframes'   : 3,
+'bitrate_mode'  : 1,
+'bitrate'   : 400,
+'bitrate_peak'  : 400,
+'dnr_mode'  : 0,
+'dnr_spatial'   : 0,
+'dnr_temporal'  : 0,
+'dnr_type'  : 0,
+'framerate' : 0,
+'framespergop'  : 15,
+'gop_closure'   : 1,
+'pulldown'  : 0,
+'stream_type'   : 10,
+}
 
-is covered here
-(link to ivtv section of rshortt's explanation)
+# Please see freevo_config.py for details.
+}}}


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog


[Freevo-wikilog] [Freevo Wiki] Update of "RecordingInfo"

2004-02-01 Thread freevo-wikilog
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change 
notification.

The following page has been changed by 24.128.246.209:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/RecordingInfo

No older revisions of the page stored, diff not available.


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog


[Freevo-wikilog] [Freevo Wiki] Update of "DocumentationPage"

2004-02-01 Thread freevo-wikilog
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change 
notification.

The following page has been changed by 24.128.246.209:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/DocumentationPage

--
@@ -662,5 +662,5 @@
 = FAQ =
  
 [http://freevo.sourceforge.net/cgi-bin/moin.cgi/FrequentlyAskedQuestions FAQ]
-
+[http://freevo.sourceforge.net/cgi-bin/moin.cgi/RecordingInfo RecordingInfo]
 #


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog


[Freevo-wikilog] [Freevo Wiki] Update of "FrontPage"

2004-02-01 Thread freevo-wikilog
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change 
notification.

The following page has been changed by 195.95.88.223:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/FrontPage

The comment on the change is:
video adap

No differences found!


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog


Re: [Freevo-devel] Smallest mainmenu plugin to start "outside"application

2004-02-01 Thread Michael Ruelle
>From the xml.

stoposd element tells freevo to get out of the way
spawwm element tells freevo to start/stop an x11 window manager while
app is running (obviously you must be running X for this)

>From the local_conf.py:
COMMAND_SPAWN_WM -- how to start your window manager
COMMAND_KILL_WM -- how to stop your window manager

examples:

for ratpoison:
COMMAND_SPAWN_WM = 'ratpoison &'
COMMAND_KILL_WM = 'ratpoison -c quit'

for metacity (gnome default wm):
COMMAND_SPAWN_WM = 'metacity &'
COMMAND_KILL_WM = 'killall metacity'

As for your application problem. Try running a few different apps, to
see if this is application specific. I have tested with MozillaFirebird,
RealPlayer, and a few other apps. I have never tested with MythTv(It
freezes my machine hard and i have to manually reset) although someone
has made a plugin to use mythtv as the tv app for freevo. he was on irc
working with dischi a few weeks ago.

-- 
Mike Ruelle
[EMAIL PROTECTED]
http://world.std.com/~mruelle/

On Sun, 2004-02-01 at 09:05, Robert Rozman wrote:
> Hi,
> 
> I've tried that and it works (great - I thought of this and you created
> plugin some days ago - I wish that could happen each time I have desire
> :-) )..
> 
>  I'd just ned to do something useful with spawnwm and killwm (I start mythtv
> with that and when it finishes I get blank screen).
> 
> Could you give us some more info on meaning of parameters in Mozilla.fxd ?
> 
> Thanks in advance,
> 
> regards,
> 
> Robert.
> 
> - Original Message -
> From: "Michael Ruelle" <[EMAIL PROTECTED]>
> To: "FreevoDevel" <[EMAIL PROTECTED]>
> Sent: Sunday, February 01, 2004 1:55 AM
> Subject: Re: [Freevo-devel] Smallest mainmenu plugin to start
> "outside"application
> 
> 
> > I have made a plugin in cvs to do this with the commandmmitem.py plugin.
> > It uses the fxd file format that is new in cvs for command.py. There is
> > an example fxd in my WIP.
> >
> > --
> > Mike Ruelle
> > [EMAIL PROTECTED]
> > http://world.std.com/~mruelle/
> >
> > On Sat, 2004-01-31 at 19:35, Robert Rozman wrote:
> > > Hi,
> > >
> > > I'd like to run external application from mainmenu in Freevo. I wonder
> what
> > > would minimal mainmenu plugin for this be ? Any example, code ?
> > >
> > > Regards,
> > >
> > > Robert.



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] Re: Possible bug plus one question

2004-02-01 Thread Dirk Meyer
"Michael Grundberg" wrote:
> Hi,
>
> I've just checked out the CVS version and noticed one thing that is not so
> good and might be a bug. Row 168 in mplayer.py adds an extra option "-cache
> 100" if the item is supposedly played from the network. However, when
> playing from a cd the network_play flag is set to True, causing mplayer to
> start with a buffer of only 100 kb instead of the buffer size set in
> local_conf.py. At least on my machine, using such a small buffer makes cds
> unplayable due to the amount of skips.

Fixed.

> Another question: I have modified the freevo code to produce a directory
> entry "Complete Playlist" for audio files, in the same manner as the "Random
> Playlist" except the playlist is not randomized of course. I did this
> because I prefer listening to an album or cd in the "correct" order than in
> a random order. Is this something worth sending in a patch for, or is there
> another way of achieving the same effect?

There should an item in the item menu for directories: 'play all files
in this directory'.


Dischi

-- 
errors in argv often lead to output of argh
-- suffered wisdom


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Re: (Dummy) Python question

2004-02-01 Thread Aubin Paul
I think HTMLParser might be what you're looking for... it's in
standard python.

On Sun, Feb 01, 2004 at 01:19:20PM +0100, [EMAIL PROTECTED] wrote:
> > You can use regexp in Python, too. It's the 're' module. See Python
> > doc about for details and look at gethaedlines, because this functions
> > also removes some tags.
> In fact, in PERL, with the HTML::Parser module, you can fetch a whole page
> to an object, the call something like :
> print mypage->as_text();
> 
> The HTM::Parser deals internally with the HTML tree and do all the regexp
> related job... So my question is : is there a similar module in Python ???
> 
> Sylvain.
> >
> >
> > Dischi
> >
> > --
> > I say no to drugs, They just don't listen...
> >
> >
> > ---
> > The SF.Net email is sponsored by EclipseCon 2004
> > Premiere Conference on Open Tools Development and Integration
> > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> > http://www.eclipsecon.org/osdn
> > ___
> > Freevo-devel mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/freevo-devel
> >
> 
> 
> 
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> Freevo-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freevo-devel


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] PopupBox.destroy() method

2004-02-01 Thread James A. Laska
Trying to add support to the freevo-weather plugin to allow a forecast
refresh during MENU_SELECT when you are viewing a particular forecast. 
All works well, but I'm experiencing a strange behavior with the screen
drawing and popupbox.

  popup = PopupBox( text='Some popup' )
  popup.show()
  self.weather.getForecast(force=1)
  # skin.clear( )
  popup.destroy()
  skin.redraw( )

Despite the popup.destroy() call, I still see the popup on the current
screen. This is strange because I am calling skin.redraw() after the
destroy().  I tried doing a redraw() and a plain draw(...), both
experience the same behavior.

I'm wondering if this is because the content layer underneath the popup
may not have changed much (for example updating weather data every 5
secs wouldn't show much change).  In the cases that the skin content
does change, it appears the changed parts are redrawn and the popup is
removed over those places, while other parts of the popup are still on
the screen.  Did that make sense?  To sum it up, the popup isn't
completely being cleared or drawn over.

This problem is easily solved by uncommenting the skin.clear() method
call (as seen above).  However, that doesn't seem like the right
approach since the screen flickers black when called.  That doesn't seem
good from a user perspective.  What is the correct approach here?  Why
isn't popup.destroy() clearing the popup from the screen?  Is it the
callers duty to refresh?  That would make sense, but then why isn't
refresh() actually refreshing?

Thanks in advance, appreciate any thoughts,
jlaska


-- 
James A. Laska <[EMAIL PROTECTED]>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Smallest mainmenu plugin to start "outside"application

2004-02-01 Thread Robert Rozman
Hi,

I've tried that and it works (great - I thought of this and you created
plugin some days ago - I wish that could happen each time I have desire
:-) )..

 I'd just ned to do something useful with spawnwm and killwm (I start mythtv
with that and when it finishes I get blank screen).

Could you give us some more info on meaning of parameters in Mozilla.fxd ?

Thanks in advance,

regards,

Robert.

- Original Message -
From: "Michael Ruelle" <[EMAIL PROTECTED]>
To: "FreevoDevel" <[EMAIL PROTECTED]>
Sent: Sunday, February 01, 2004 1:55 AM
Subject: Re: [Freevo-devel] Smallest mainmenu plugin to start
"outside"application


> I have made a plugin in cvs to do this with the commandmmitem.py plugin.
> It uses the fxd file format that is new in cvs for command.py. There is
> an example fxd in my WIP.
>
> --
> Mike Ruelle
> [EMAIL PROTECTED]
> http://world.std.com/~mruelle/
>
> On Sat, 2004-01-31 at 19:35, Robert Rozman wrote:
> > Hi,
> >
> > I'd like to run external application from mainmenu in Freevo. I wonder
what
> > would minimal mainmenu plugin for this be ? Any example, code ?
> >
> > Regards,
> >
> > Robert.
>
>
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> Freevo-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freevo-devel



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Re: (Dummy) Python question

2004-02-01 Thread centraladmin
> You can use regexp in Python, too. It's the 're' module. See Python
> doc about for details and look at gethaedlines, because this functions
> also removes some tags.
In fact, in PERL, with the HTML::Parser module, you can fetch a whole page
to an object, the call something like :
print mypage->as_text();

The HTM::Parser deals internally with the HTML tree and do all the regexp
related job... So my question is : is there a similar module in Python ???

Sylvain.
>
>
> Dischi
>
> --
> I say no to drugs, They just don't listen...
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> Freevo-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freevo-devel
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-wikilog] [Freevo Wiki] Update of "Voodoo3Page"

2004-02-01 Thread freevo-wikilog
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change 
notification.

The following page has been changed by 24.66.93.209:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/Voodoo3Page

--
@@ -17,10 +17,14 @@
 {{{ [...]
 ModeLine "640x480PAL"   29.50   640  675  678  944  480  530  535  625
 ModeLine "800x600PAL"   36.00   800  818  820  960  600  653  655  750
+ModeLine "640x480NTSC"  28.195793   640  656  658  784  480  520  525  600
+ModeLine "800x600NTSC"  38.769241   800  812  814  880  600  646  649  735
 [...]
 Subsection "Display"
   Depth 16
   Modes   "1280x1024" "800x600PAL" "800x600" "640x480PAL" "640x480" 
+  # Or for NTSC:
+  #Modes   "1280x1024" "800x600NTSC" "800x600" "640x480NTSC" "640x480" 
 [...]
 [...]
 }}}


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog


[Freevo-devel] Re: (Dummy) Python question

2004-02-01 Thread Dirk Meyer
[EMAIL PROTECTED] wrote:
> I try to modify now the headlines plugin, by adding an automatic link
> resolver : if a link is found in the content of one title, then the link
> is fetched and the content is displayed. As this content is mainly
> text-based, i want to convert directly the HTML file to a text string,
> without any HTML keywords.
>
> I can do that in one function in PERL, but i do not see exactly how to do
> the same in Python.

You can use regexp in Python, too. It's the 're' module. See Python
doc about for details and look at gethaedlines, because this functions
also removes some tags.


Dischi

-- 
I say no to drugs, They just don't listen...


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-wikilog] [Freevo Wiki] Update of "MandrakeInstallation"

2004-02-01 Thread freevo-wikilog
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change 
notification.

The following page has been changed by 24.66.93.209:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/MandrakeInstallation

--
@@ -40,7 +40,7 @@
 
 urpmi 
ftp://rpmfind.net/linux/MandrakeCooker/contrib/i586/pycrypto-1.9a6-1mdk.i586.rpm [[BR]]
 urpmi ftp://rpmfind.net/linux/MandrakeCooker/contrib/i586/PyXML-0.8.3-1mdk.i586.rpm 
[[BR]]
-urpmi ftp://rpmfind.net/linux/MandrakeCooker/contrib/i586/pygame-1.6-1mdk.i586.rpm 
[[BR]]
+urpmi ftp://rpmfind.net/linux/MandrakeCooker/contrib/i586/pygame-1.6-2mdk.i586.rpm 
[[BR]]
 urpmi 
ftp://rpmfind.net/linux/Mandrake-devel/contrib/i586/python-lirc-0.0.4-1mdk.i586.rpm 
[[BR]]
 
 If you are in North America (USA) you want tv_grab_na, but the above doesn't install 
it, so do this as root in the root dir: (for V5.25, change this to suit newer versions)
@@ -130,7 +130,6 @@
 10 - Change /tmp/TV.xml link to point to /root/freevo/xmltv/listings_18052003.xml
 
 11 - execute /usr/local/freevo - Some tv listings are showing up now. 
-
 
 
 


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog