Trees | Indices | Help |
---|
|
1 # -*- Mode: Python -*- 2 # vi:si:et:sw=4:sts=4:ts=4 3 4 # Flumotion - a streaming media server 5 # Copyright (C) 2004,2005,2006,2007,2008,2009 Fluendo, S.L. 6 # Copyright (C) 2010,2011 Flumotion Services, S.A. 7 # All rights reserved. 8 # 9 # This file may be distributed and/or modified under the terms of 10 # the GNU Lesser General Public License version 2.1 as published by 11 # the Free Software Foundation. 12 # This file is distributed without any warranty; without even the implied 13 # warranty of merchantability or fitness for a particular purpose. 14 # See "LICENSE.LGPL" in the source distribution for more information. 15 # 16 # Headers in this file shall remain intact. 17 18 import os 19 import gettext 20 21 from flumotion.component.base.baseadminnode import BaseAdminGtkNode 22 from flumotion.component.common.streamer.admin_gtk import StreamerAdminGtk 23 24 _ = gettext.gettext 25 __version__ = "$Rev$" 26 2729 gladeFile = os.path.join('flumotion', 'component', 'consumers', 30 'icystreamer', 'icytab.glade') 3177 7833 BaseAdminGtkNode.__init__(self, *args, **kwargs) 34 self._icytab = None 35 self._shown = False 36 self._stats = None 37 self._labels = {}3840 self._labels = {} 41 self._icytab = self.wtree.get_widget('main_vbox') 42 self.widget = self._icytab 43 44 for name in ['title', 'timestamp']: 45 self._registerLabel('icy-' + name) 46 47 return self.widget4850 widget = self.wtree.get_widget('label-' + name) 51 if not widget: 52 print "FIXME: no widget %s" % name 53 return 54 55 self._labels[name] = widget56 6163 # Set _stats regardless of if condition 64 # Used to be a race where _stats was 65 # not set if widget tree was gotten before 66 # ui state 67 self._stats = stats 68 if not self._icytab: 69 return 70 71 self._updateLabels(stats) 72 73 if not self._shown: 74 # widget tree created but not yet shown 75 self._shown = True 76 self._icytab.show_all()8092 93 GUIClass = ICYStreamerAdminGtk 9482 icytab = IcyAdminGtkNode(self.state, self.admin, 83 _("ICY")) 84 self.nodes['ICY'] = icytab 85 86 StreamerAdminGtk.setup(self)87
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 13 06:17:12 2013 | http://epydoc.sourceforge.net |