1
# -*- coding: utf-8 -*-
2
# Elisa - Home multimedia server
3
# Copyright (C) 2006,2007 Fluendo Embedded S.L. (www.fluendo.com).
6
# This file is available under one of two license agreements.
8
# This file is licensed under the GPL version 2.
9
# See "LICENSE.GPL" in the root of this distribution including a special
10
# exception to use Elisa with Fluendo's plugins.
12
# The GPL part of Elisa is also available under a commercial licensing
13
# agreement from Fluendo.
14
# See "LICENSE.Elisa" in the root directory of this distribution package
15
# for details on that license.
17
from pgm.form import rectangle, label, color, stroke
18
from pgm.layout import group
19
from pgm import widget
21
class Loading(group.Group):
25
group.Group.__init__(self, size=size)
26
self._rect = rectangle.Rectangle(size=size)
27
self._rect.ordering = widget.NEAR
29
self._label = label.Label(font_size=34, size=(size[0], 40),
30
weight=label.WEIGHT_BOLD)
33
self._label.position = (50, 250)
34
self._label.ordering = widget.NEAR
38
def text__set(self, text):
39
self._label.text = text
46
return self._label.text
54
def visible__set(self, visible):
55
group.Group.visible__set(self, visible)
56
self._label.visible = visible
57
self._rect.visible = visible