1
# -*- coding: UTF-8 -*-
3
# Copyright 2013 Facundo Batista
5
# This program is free software: you can redistribute it and/or modify it
6
# under the terms of the GNU General Public License version 3, as published
7
# by the Free Software Foundation.
9
# This program is distributed in the hope that it will be useful, but
10
# WITHOUT ANY WARRANTY; without even the implied warranties of
11
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
12
# PURPOSE. See the GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License along
15
# with this program. If not, see <http://www.gnu.org/licenses/>.
17
# For further info, check https://launchpad.net/encuentro
25
from PyQt4.QtGui import (
29
from PyQt4.QtCore import Qt
32
BASEDIR = path.abspath(path.dirname(path.dirname(path.realpath(sys.argv[0]))))
35
class Throbber(QLabel):
38
super(Throbber, self).__init__()
39
self.setAlignment(Qt.AlignCenter)
40
fname = path.join(BASEDIR, "encuentro/ui/media/throbber.gif")
41
self._movie = QMovie(fname)
42
self.setMovie(self._movie)
45
"""Overload to control the movie."""
47
super(Throbber, self).hide()
50
"""Overload to control the movie."""
52
super(Throbber, self).show()