2009-09-08 19:58:05 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
|
2009-01-01 11:18:16 +00:00
|
|
|
|
2009-09-08 19:58:05 +00:00
|
|
|
###############################################################################
|
|
|
|
# OpenLP - Open Source Lyrics Projection #
|
|
|
|
# --------------------------------------------------------------------------- #
|
2009-12-31 12:52:01 +00:00
|
|
|
# Copyright (c) 2008-2010 Raoul Snyman #
|
|
|
|
# Portions copyright (c) 2008-2010 Tim Bentley, Jonathan Corwin, Michael #
|
2009-11-30 20:29:26 +00:00
|
|
|
# Gorven, Scott Guerrieri, Maikel Stuivenberg, Martin Thompson, Jon Tibble, #
|
|
|
|
# Carsten Tinggaard #
|
2009-09-08 19:58:05 +00:00
|
|
|
# --------------------------------------------------------------------------- #
|
|
|
|
# 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; version 2 of the License. #
|
|
|
|
# #
|
|
|
|
# This program is distributed in the hope that it will be useful, but WITHOUT #
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 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 #
|
|
|
|
###############################################################################
|
2009-01-01 11:18:16 +00:00
|
|
|
|
|
|
|
import logging
|
|
|
|
|
|
|
|
class Display():
|
|
|
|
global log
|
2009-09-25 23:06:54 +00:00
|
|
|
log = logging.getLogger(u'Display Logger')
|
2009-06-16 18:21:24 +00:00
|
|
|
log.info(u'Display Class loaded')
|
2009-06-23 16:25:40 +00:00
|
|
|
|
2009-01-01 11:18:16 +00:00
|
|
|
@staticmethod
|
|
|
|
def output(string):
|
|
|
|
log.debug(string);
|
|
|
|
print (string)
|
2009-06-23 16:25:40 +00:00
|
|
|
|
2009-01-01 11:18:16 +00:00
|
|
|
@staticmethod
|
|
|
|
def sub_output(string):
|
2009-09-25 23:06:54 +00:00
|
|
|
if not string is None:
|
2009-06-23 16:25:40 +00:00
|
|
|
log.debug(u' '+string);
|
2009-12-31 12:52:01 +00:00
|
|
|
print (u' '+string)
|