Update of /cvsroot/freevo/freevo/src/gui/displays
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2692
Added Files:
ivtv_osd.py
Log Message:
Initial support for using IvtvCanvas which will display over the ivtv osd
interface. This is called ivtv_osd because it is also possible to display
through the ivtv decoder (MPEG and perhaps YUV)... maybe someone would like
another module for that.
--- NEW FILE: ivtv_osd.py ---
# -*- coding: iso-8859-1 -*-
# -----------------------------------------------------------------------
# ivtv_osd.py - Display for the IVTV OSD interface.
# -----------------------------------------------------------------------
# $Id: ivtv_osd.py,v 1.1 2004/09/01 23:39:53 rshortt Exp $
#
# -----------------------------------------------------------------------
# $Log: ivtv_osd.py,v $
# Revision 1.1 2004/09/01 23:39:53 rshortt
# Initial support for using IvtvCanvas which will display over the ivtv osd
# interface. This is called ivtv_osd because it is also possible to display
# through the ivtv decoder (MPEG and perhaps YUV)... maybe someone would like
# another module for that.
#
#
#
# -----------------------------------------------------------------------
#
# Freevo - A Home Theater PC framework
#
# Copyright (C) 2002 Krister Lagerstrom, et al.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MER-
# CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# ----------------------------------------------------------------------
# basic python imports
import time
# mevas imports
from mevas.displays.ivtvcanvas import IvtvCanvas
# Freevo imports
import config
import rc
class Display(IvtvCanvas):
"""
Display class for OSD output
"""
def __init__(self, size, default=False):
IvtvCanvas.__init__(self, size)
self.running = True
self.animation_possible = False
def hide(self):
"""
Hide the output display. In most cases this does nothing since
a simple window doesn't matter. If OSD_STOP_WHEN_PLAYING the
ygame display will be shut down.
"""
if config.OSD_STOP_WHEN_PLAYING:
self.stop()
def show(self):
"""
Show the output window again if it is not visible
"""
if config.OSD_STOP_WHEN_PLAYING:
self.restart()
def stop(self):
"""
Stop the display
"""
if self.running:
self.freeze()
self.running = False
def restart(self):
"""
Restart the display if it is currently stopped
"""
if not self.running:
self.thaw()
self.running = True
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog