Author: johannes
Date: 2006-03-30 02:15:26 -0600 (Thu, 30 Mar 2006)
New Revision: 8289
Modified:
trunk/gnue-forms/src/GFObjects/GFLabel.py
Log:
Make rows- and rowSpacer-attribute working for GFLabels
Modified: trunk/gnue-forms/src/GFObjects/GFLabel.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFLabel.py 2006-03-30 08:06:52 UTC (rev
8288)
+++ trunk/gnue-forms/src/GFObjects/GFLabel.py 2006-03-30 08:15:26 UTC (rev
8289)
@@ -43,3 +43,20 @@
# Default attributes (these may be replaced by parser)
self.alignment = "left"
self.Char__height = int (gConfigForms ('widgetHeight'))
+
+
+ # ---------------------------------------------------------------------------
+ # Implementation of virtual methods
+ # ---------------------------------------------------------------------------
+
+ def _phase1Init_ (self):
+ """
+ On phase 1 initialization make sure to get the current value of the rows-
+ and rowSpacer-attribute. Since a GFLabel has no block it won't be set
+ otherwise.
+ """
+
+ GFObj._phase1Init_ (self)
+
+ self._rows = getattr (self, 'rows', self._rows)
+ self._gap = getattr (self, 'rowSpacer', self._gap)
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue