convert to new style
authorFelix Domke <tmbinc@elitedvb.net>
Wed, 3 May 2006 18:48:07 +0000 (18:48 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Wed, 3 May 2006 18:48:07 +0000 (18:48 +0000)
lib/python/Components/DiskInfo.py
lib/python/Components/Header.py

index be1521cf304fa3a92ca20b289b1b763d8e8f16dd..1278ff990de10225ca284815041d1dd3656f6556 100644 (file)
@@ -29,5 +29,4 @@ class DiskInfo(VariableText, GUIComponent):
                        free = stat.f_bfree / 1000 * stat.f_bsize / 1000
                        self.setText(("%dMB " + _("free diskspace")) % (free))
 
-       def createWidget(self, parent):
-               return eLabel(parent)
+       GUI_WIDGET = eLabel
index 07d5ee8341010e3db3bc84ac126ab61222de6e7f..6f085c15e023fa7cba151dbb0e86f13a1324dcfd 100644 (file)
@@ -14,7 +14,4 @@ class Header(VariableText, HTMLComponent, GUIComponent):
        def produceHTML(self):
                return "<h2>" + self.getText() + "</h2>\n"
 
-       def createWidget(self, parent):
-               g = eLabel(parent)
-               return g
-
+       GUI_WIDGET = eLabel