Update of /cvsroot/freevo/freevo/src/video
In directory sc8-pr-cvs1:/tmp/cvs-serv7997
Modified Files:
videoitem.py
Log Message:
add create thumbnail
Index: videoitem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/videoitem.py,v
retrieving revision 1.108
retrieving revision 1.109
diff -C2 -d -r1.108 -r1.109
*** videoitem.py 1 Jan 2004 19:36:46 -0000 1.108
--- videoitem.py 4 Jan 2004 11:17:10 -0000 1.109
***************
*** 11,14 ****
--- 11,17 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.109 2004/01/04 11:17:10 dischi
+ # add create thumbnail
+ #
# Revision 1.108 2004/01/01 19:36:46 dischi
# do not inherit players to child
***************
*** 286,289 ****
--- 289,295 ----
items = [ (self.show_variants, _('Show variants')) ] + items
+ if not self.image and self.filename and not self.variants and not
self.subitems:
+ items.append((self.create_thumbnail, _('Create Thumbnail')))
+
return items
***************
*** 298,301 ****
--- 304,319 ----
m.item_types = 'video'
self.menuw.pushmenu(m)
+
+
+ def create_thumbnail(self, arg=None, menuw=None):
+ """
+ create a thumbnail as image icon
+ """
+ import util.videothumb
+ pop = PopupBox(text=_('Please wait....'))
+ pop.show()
+ util.videothumb.snapshot(self.filename, os.path.splitext(self.filename)[0] +
'.png')
+ pop.destroy()
+ menuw.back_one_menu()
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog