1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
# coding=UTF-8
# ex:ts=4:sw=4:et=on
# -------------------------------------------------------------------------
# Copyright (C) 2014 by Mathijs Dumon <mathijs dot dumon at gmail dot com>
# Copyright (C) 2005 by Roberto Cavada <roboogle@gmail.com>
#
# mvc is a framework derived from the original pygtkmvc framework
# hosted at: <http://sourceforge.net/projects/pygtkmvc/>
#
# mvc is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# mvc 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110, USA.
# -------------------------------------------------------------------------
# FIXME clean this mess up
"""
Shortcuts are provided to the following classes defined in submodules:
.. class:: Model
:noindex:
.. class:: TreeStoreModel
:noindex:
.. class:: ListStoreModel
:noindex:
.. class:: TextBufferModel
:noindex:
.. class:: ModelMT
:noindex:
.. class:: Controller
:noindex:
.. class:: View
:noindex:
.. class:: Observer
:noindex:
.. class:: Observable
:noindex:
"""
from .support.version import LooseVersion
from .__version import __version__
# Class shortcuts:
from .observers import Observer
from .support.observables import Signal, Observable
from .models import *
try:
from .view import View
from .controller import Controller
except ImportError:
import logging
logging.getLogger(__name__).warning("ImportError when trying to load View and/or Controller: do you have PyGTK/GObject installed?")
|