openlp/openlp/core/ui/firsttimeform.py

55 lines
2.6 KiB
Python
Raw Normal View History

2011-02-26 11:16:21 +00:00
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# --------------------------------------------------------------------------- #
# Copyright (c) 2008-2011 Raoul Snyman #
# Portions copyright (c) 2008-2011 Tim Bentley, Jonathan Corwin, Michael #
# Gorven, Scott Guerrieri, Meinert Jordan, Armin Köhler, Andreas Preikschat, #
# Christian Richter, Philip Ridout, Maikel Stuivenberg, Martin Thompson, Jon #
# Tibble, Carsten Tinggaard, Frode Woldsund #
# --------------------------------------------------------------------------- #
# 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 #
###############################################################################
2011-02-26 15:19:43 +00:00
import logging
2011-02-26 11:16:21 +00:00
from PyQt4 import QtGui
2011-02-26 15:19:43 +00:00
from firsttimewizard import Ui_FirstTimeWizard
2011-02-26 11:16:21 +00:00
from openlp.core.lib import translate
from openlp.core.utils import get_web_page
2011-02-26 15:19:43 +00:00
log = logging.getLogger(__name__)
class FirstTimeForm(QtGui.QWizard, Ui_FirstTimeWizard):
"""
This is the Theme Import Wizard, which allows easy creation and editing of
OpenLP themes.
"""
log.info(u'ThemeWizardForm loaded')
2011-02-26 11:16:21 +00:00
2011-02-26 15:19:43 +00:00
def __init__(self, parent=None):
2011-02-26 11:16:21 +00:00
# check to see if we have web access
self.WebAccess = get_web_page(u'http://openlp.org1')
print self.WebAccess
2011-02-26 15:19:43 +00:00
QtGui.QWizard.__init__(self, parent)
self.setupUi(self)
#self.registerFields()
def accept(self):
return QtGui.QWizard.accept(self)