aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Label.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/Label.py')
-rw-r--r--lib/python/Components/Label.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/Components/Label.py b/lib/python/Components/Label.py
index 609c6deb..7402d722 100644
--- a/lib/python/Components/Label.py
+++ b/lib/python/Components/Label.py
@@ -15,6 +15,10 @@ class Label(HTMLComponent, GUIComponent, VariableText):
return self.getText()
# GUI:
- def createWidget(self, parent, skindata):
+ def createWidget(self, parent):
return eLabel(parent)
+ def getSize(self):
+ s = self.instance.calculateSize()
+ return (s.width(), s.height())
+